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
To Capture copy time when copy folder from one to another
Moderator: DosItHelp
-
- Posts: 4
- Joined: 22 Feb 2013 18:10
Re: To Capture copy time when copy folder from one to anothe
Put "echo Copy started at %date%%time% >>file.txt" before copy command
-
- Posts: 4
- Joined: 22 Feb 2013 18:10
Re: To Capture copy time when copy folder from one to anothe
Thanks,
Can you please send me the script for this. I am new for batch file creation. It would be helpful.
Can you please send me the script for this. I am new for batch file creation. It would be helpful.
-
- Posts: 4
- Joined: 22 Feb 2013 18:10
Re: To Capture copy time when copy folder from one to anothe
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.
-
- Posts: 4
- Joined: 22 Feb 2013 18:10
Re: To Capture copy time when copy folder from one to anothe
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
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"
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"