I've posted this under the XP part of the forum because I'm trying to create a simple back up batch file running on an XP machine.
Basically I have made a simple batch file that contains the following:-
xcopy "c:\soundcheck 5.0\*.*" \\serv1\line_d\data /D /E /C /R /Y /F>\\serv1\line_d\logs\line_d.txt
which takes a look at the contents of my soundcheck folder and copies any new files to a server just as a precautionary back up. It also creates a little log file of what it has done.
This simple back up is fine for my needs as new files are always added to the source folder I'm backing up, but nothing is ever deleted.
What I would like to do now is enhance the logging of this process by keeping the logs created rather than delete the previous one. I'm not all that good at batch files (as you can probably see from the script I've created).
My idea is to move the log.txt file rather than delete, but I want to move the file and also rename it with the previous date in the file name (eg log_03032006.txt).
I know this won't work but I have tried typing:- move \\serv1\line_d\logs\log.txt log<date>.txt (don't laugh, if you don't try, you'll never know).
Please can anybody help with this?