Run bat file from Schedule Tasks Win Server 2K3 R2

Posted on 2007-10-04
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
Question by:MTSDL
    LVL 16

    Accepted Solution

    On the server where the batch schedule is NOT running RESET your password.
    After you do, right click on the job and click on Run Now.

    If that does not fix it, what message do you get?
    LVL 22

    Expert Comment

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

    Also have you review the schedule task log?


    Author Comment

    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
    LVL 16

    Expert Comment

    The task scheduler will not do anything if the password is wrong or corrupted.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now