batch file does not run under task scheduler

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
suffolkbunny
Posts: 2
Joined: 29 Aug 2011 04:38

batch file does not run under task scheduler

#1 Post by suffolkbunny » 29 Aug 2011 07:58

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.

A_Bobby
Posts: 38
Joined: 21 Oct 2010 12:48

Re: batch file does not run under task scheduler

#2 Post by A_Bobby » 29 Aug 2011 16:43

Try running it as an administrator by setting admin credentials.

InterociterOperator
Posts: 11
Joined: 28 Feb 2011 21:08

Re: batch file does not run under task scheduler

#3 Post by InterociterOperator » 29 Aug 2011 19:17

Double check complete path to executable for typos.

suffolkbunny
Posts: 2
Joined: 29 Aug 2011 04:38

Re: batch file does not run under task scheduler

#4 Post by suffolkbunny » 30 Aug 2011 03:30

I have treble checked the path to make sure there are no 'typo' errors and tried with administrator priviledges but still no success.

Post Reply