I have a batch file that runs an xcopy over the network to copy the contents of a harddrive from an older computer to a special folder on the new computer. It's worked fine until recently it was modified to copy a few other folders over in separate xcopy commands. Now it does the main xcopy (the first of the three at the bottom), then it stops and doesn't finish after that.
If after it fails to finish everything I need it to, I modify the file to remove everything between the set command and the last two xcopy commands, it will go through fine, so it's not that somethings typed wrong down there.
Does anyone know why it may prematurely terminate the file before finishing all of the xcopy commands?
This is being used with Windows XP. If you need any more info, just ask :)
set /p source="Enter Source Computer Service Tag: "
xcopy "\software\xcopy\exclude.txt" "C:\" /y /e /c /h /i
xcopy "\software\xcopy\xcopy.bat" "C:\Install" /y /e /c /h /i
mkdir "C:\old harddrive"
mkdir "C:\old harddrive\Notesbackup"
cd \old harddrive
xcopy "\\%source%-company\C$\*.*" /y /e /c /h /i /exclude:C:\exclude.txt
xcopy "\\%source%-company\C$\program files\lotus\notes\*.*" "C:\old harddrive\notesbackup\program files\lotus\notes" /y /e /c /h /i
xcopy "\\%source%-company\C$\program files\wherenet\*.*" "C:\program files\wherenet" /y /e /c /h /i