Page 1 of 1
To Capture copy time when copy folder from one to another
Posted: 22 Feb 2013 18:14
by sanand7984
Hi,
Can you please help to capture copy time in seperate text file when I start copy folder from one location to another location using Batch file.
Thanks,
Anandh.S
Re: To Capture copy time when copy folder from one to anothe
Posted: 22 Feb 2013 18:26
by shirulkar
Put "echo Copy started at %date%%time% >>file.txt" before copy command
Re: To Capture copy time when copy folder from one to anothe
Posted: 22 Feb 2013 18:44
by sanand7984
Thanks,
Can you please send me the script for this. I am new for batch file creation. It would be helpful.
Re: To Capture copy time when copy folder from one to anothe
Posted: 22 Feb 2013 18:49
by sanand7984
I am expecting that how many "hh:mm:ss" it would take copying the folder from one location to another location. I need the folder copy duration in a seperate file.
Re: To Capture copy time when copy folder from one to anothe
Posted: 22 Feb 2013 20:13
by sanand7984
Is it possible or not? Can you please anyone help me on this.
Re: To Capture copy time when copy folder from one to anothe
Posted: 22 Feb 2013 22:15
by foxidrive
It's possible. With plain batch it is tedious.
It would be better to use a program like timethis.exe that times a task:
---------------------------------------------------------------
TIMETHIS : Command Timing Utility : by kevina@microsoft.com
---------------------------------------------------------------
Usage : TIMETHIS "command"
TimeThis executes the command specified by its arguments, then reports its
run time in HH:MM:SS.TTT format. Quotes around the command are required only
when the command involves redirection via <, >, >>, or |, etc. Quotes ensure
that the redirection is applied to the command being timed, rather than the
TimeThis command itself.
Examples :
TimeThis DIR C:\WINNT
TimeThis "DIR C:\WINNT | MORE"