Computing.Net > Forums > Programming > XCOPY Log needed

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

Reply to Message Icon

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!




Sponsored Link
Ads by Google

Response Number 1
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.

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: XCOPY Log needed

batch Programming www.computing.net/answers/programming/batch-programming/15509.html

logging shell scripts www.computing.net/answers/programming/logging-shell-scripts/10933.html

qbasic zip log files program help www.computing.net/answers/programming/qbasic-zip-log-files-program-help/12511.html