I've been trying to set up a backup script originally to run on a server 2000 machine to copy data back to the server from a directory on a win xp machine. This has worked on several sites on server 2000 and server 2003 with xp clients but for one site it just won't run. If I run the script on its own it works but scheduled tasks won't run it and gives the last result code as 0x1. This site had a new sever put in this week with Server 2003, so I was expecting it to now work but it doesn't. I've even tried setting the scheduled task up on the xp client to copy back to the server but again the script runs and works on its own but scheduled tasks just won't run it.
MW
Code:
@echo off
:: variables
set drive=k:\
set backupcmd=xcopy /s /c /d /e /h /i /r /y
%backupcmd% "C:\Program Files\data" "%drive%\data"
@stop
MW