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.
batch file does not run under task scheduler
Moderator: DosItHelp
Re: batch file does not run under task scheduler
Try running it as an administrator by setting admin credentials.
-
- Posts: 11
- Joined: 28 Feb 2011 21:08
Re: batch file does not run under task scheduler
Double check complete path to executable for typos.
-
- Posts: 2
- Joined: 29 Aug 2011 04:38
Re: batch file does not run under task scheduler
I have treble checked the path to make sure there are no 'typo' errors and tried with administrator priviledges but still no success.