Ok, so I run an automated batch script that backs up my server/downloader PC, and I'd like to have a log of exactly what was and wasnt backed up, and the most useful way of doing that would be at the end of the batch script have a line of code that dumps every line echoed to a text file.
Is there a way to do this? (I've tried google)
Using cmd on XP Pro SP2
Thanks
Dumping the console
Sorry, I should have been clearer. I'm not using the XP/2k backup tool (the one that makes the bkfs) I'm just using xcopy and winzip command line, but I'd like a log of what the batch file echoes on screen, i.e. errors in copying, read only errors and stuff like that. Basically, a dump of whatever is in the cmd window. e.g:
Thanks
Code: Select all
C:\xcopy "C:\a\*.*" "C:\b\*.*" -f -d -x
Copying a
copying b
Thanks

-
- Posts: 4755
- Joined: Mon Oct 22, 2001 7:00 am