210 pts.
 Log file copy time
Is it possible to log how long it takes for a file to copy from one location to another? I am using Windows and wanted to output to a text file how long a file transfer took. Can anyone help with this process?

Software/Hardware used:
ASKED: August 10, 2011  6:53 PM
UPDATED: March 31, 2012  6:56 PM

Answer Wiki:
Robocopy (free) does this. It has a summary at the end of the log that gives you a bunch of summary statistics.. very helpful!
Last Wiki Answer Submitted:  August 11, 2011  2:05 am  by  Kimmaay   25 pts.
All Answer Wiki Contributors:  Kimmaay   25 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Robocopy (free) does this. It has a summary at the end of the log that gives you a bunch of summary statistics.. very helpful!

 25 pts.

 

For a trivial solution, you can run:

ECHO %TIME% myfile.name >>mylog.txt

That would append the current time and “myfile.name” to the text file named mylog.txt in the current directory.

You could echo a before-time, run the copy, then echo the after-time. It won’t be exact, but the difference should be very small. It can be tested easily from a Windows command line.

Tom

 108,135 pts.