Page 1 of 1

batch file does not run under task scheduler

Posted: 29 Aug 2011 07:58
by suffolkbunny
I have written a batch file to copy certain files from a Windows server 2003 machine to a Windows XP home computer over a previously set up rdp connection. I have manually tested it by running the batch file from the command prompt and double clicking on it in windows explorer and all works fine but I really want to schedule it to run at a particular time each night so I added it as a scheduled task and it fails. Looking in the scheduled tasks window the only clue I have is 'last result' is 0x1.
I have also tried using the 'at' command in the batch file but that does not work either.
I have tried both mapping the destination folder and using \\tsclient\<folder> but neither works. I have also checked that the source and destination folders are both shared.

I would greatly appreciate any guidance on what I am doing wrong or have failed to set up correctly.

Re: batch file does not run under task scheduler

Posted: 29 Aug 2011 16:43
by A_Bobby
Try running it as an administrator by setting admin credentials.

Re: batch file does not run under task scheduler

Posted: 29 Aug 2011 19:17
by InterociterOperator
Double check complete path to executable for typos.

Re: batch file does not run under task scheduler

Posted: 30 Aug 2011 03:30
by suffolkbunny
I have treble checked the path to make sure there are no 'typo' errors and tried with administrator priviledges but still no success.