Page 1 of 1
Dumping the console
Posted: Wed Sep 27, 2006 10:45 pm
by ilumos
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
Posted: Thu Sep 28, 2006 2:54 am
by Tormentius
Posted: Thu Sep 28, 2006 8:19 pm
by ilumos
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:
Code: Select all
C:\xcopy "C:\a\*.*" "C:\b\*.*" -f -d -x
Copying a
copying b
Thanks

Posted: Thu Sep 28, 2006 8:58 pm
by 4days
C:\xcopy "C:\a\*.*" "C:\b\*.*" -f -d -x > C:\myfile.txt
?
Posted: Fri Sep 29, 2006 9:21 am
by ilumos
Perfect! Thanks loads

Posted: Fri Sep 29, 2006 3:53 pm
by Underpants?
4days wrote:C:\xcopy "C:\a\*.*" "C:\b\*.*" -f -d -x > C:\myfile.txt
?
