Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
XCOPY Log needed
Name: RSimpson56 Date: July 6, 2006 at 06:59:51 Pacific OS: XP Pro SP2 CPU/Ram: P4 2.0 / 512 Ram Product: Dell
Comment:
Hey Guys I am looking to see if Xcopy can give me a log or file that tells me how long it took to run the Xcopy batch script. I have created just a simple Xcopy batch script to copy files from a server to an external HDD but would like to know how long the entire process took. Any Ideas? Thanks in advance for any help!
Name: Michael J (by mjdamato) Date: July 6, 2006 at 08:27:31 Pacific
Reply:
I don't think you can do it directly with XCOPY. There may be a way to do it within a batch file, but I'm not very experienced at batch scripting - someone else may be able to help you there. But, you could do it through vbscript: Create the log file, add the start time, run XCOPY, add the finish time, close the log file. However, if it can be done in a batch file, which I believe it can, then I think that would be a more efficient solution.
Michael J
0
Response Number 2
Name: Mechanix2Go Date: July 6, 2006 at 11:11:23 Pacific
Reply:
::== timer.bat @echo off set start=%TIME% call YOUR.BAT echo %START% echo %TIME%
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 3
Name: RSimpson56 Date: July 7, 2006 at 14:50:50 Pacific
Reply:
Thanks M2 for the reply but manybe I am missing something? I ran your script and it copied my files but nothing else. No time stamps, start or stop time? What did I miss? Sorry for the newbe question and thanks for your help.
0
Response Number 4
Name: Mechanix2Go Date: July 7, 2006 at 18:10:31 Pacific
Reply:
Did it show two times on the screen? If not, something is goofy here.
If it did and you want the time in a log file:
::== timer2.bat @echo off set start=%TIME% call YOUR.BAT echo started at %START%>logfile echo done at %TIME%>>logfile :: DONE
===================================== If at first you don't succeed, you're about average.
Summary: To take in account the size of data transferred start your batch as below @Echo Off SetLocal EnableDelayedExpansion Then insert where it's right for you the statements Set Count=0 For /f "tokens=* del...
Summary: Hi, I need to take the output of a batch file and put it to a log file. This needs to at the same time output to the screen. I have tried using tee but since i am using win98se, the batch wont se...
Summary: I have a server that generates log files from Internet Information Server for website reporting purposes. These log files are saved in d:\logfiles\w3svc*. There are currently 103 w3svc folders with ...