We help IT Professionals succeed at work.

Run bat file from Schedule Tasks Win Server 2K3 R2

763 Views
Last Modified: 2012-06-27
I have a batch file that is used to...
1. Delete an old version of a file
2. Download the new version of the file from an FTP server using a bespoke FTP download application that is installed on the machine.
This batch file runs fine and does exactly what it is meant to do when I run it manually (double click). It also run fine on the old Windows 2000 Server.

The batch file contains two lines...
Del "C:\blah blah\blah.txt
blah.exe /script=config-connect.txt

The Scheduled Task that I have set up runs under the machines administrator account

Any help on this would be very much appreciated
Thanks in advance
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
65tdRetired
CERTIFIED EXPERT

Commented:
Could try running it under the system account see ms doc link below.

http://support.microsoft.com/kb/814596

Also have you review the schedule task log?

see:
http://support.microsoft.com/kb/308558

Author

Commented:
I have an account set up on a domain that has domain admin privledges. I changed the Run as: to this, setup the password and it works?
Why would this have an affect on my schedule?
Thanks a lot
The task scheduler will not do anything if the password is wrong or corrupted.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.