Discussion Locked

NT command timing

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I work on NT/2000 system and write small scripts to copy files from one computer to others. I like to know, if there are commands to find out exactly how long it took to run my scripts for copying the files. As we have in unix: time cp system.dbf /backup/system1.dbf , it tells us the time it took to copy the datafile. Are there similar window/dos commands?

2 replies

by gigelul

Hi,
I don't know a timing command but you can use "logtime.exe" from WinNT resource kit which can add to a "textfile.log" the start and the end time of a job/batch.
Add at the begining of your batch:
logtime "start copy"
...............
And at the end of your batch:
logtime "end copy"
Also you must copy the logtime.exe in the same folder with your batch.

This discussion is closed to new replies.