Save a log file of what a batch files has done

Status
Not open for further replies.

TorturedChaos

Posts: 836   +43
So I have a batch file setup at work to run some backups once a day off our server. But I would like it to save a log file of what it has done, preferably with a date & maybe a time in the file name. If it just wrote everything that was displayed in the cmd window to a text file I would be happy.

Here is the batch file:
Code:
xcopy /C /E /V /I /Z /Y /D Z:\Signs R:\Public_Backups\Signs

xcopy /C /E /V /I /Z /Y /D Z:\Setup R:\Public_Backups\Setup

xcopy /C /E /V /I /Z /Y /D "Z:\Sets Here" R:\Public_Backups\Sets_Here

(I know not very fancy, but it gets the job done.)

Thanks
 
Status
Not open for further replies.
Back