BAT file processing-How to schedule

Posted on 2011-10-20
Last Modified: 2012-05-12
I have a BAT file which I would like to schedule to run at the same time every day.  How can I accomplish this??
Question by:mbroad02
    LVL 43

    Expert Comment

    by:Steve Knight
    Use task scheduler in Windows.  Either through the GUI, or command line using schtasks or AT:
    LVL 6

    Expert Comment

    What is your operating system ?
    A quick way can be to type this  dos command

    at 4:00 /every:m,t,w,th,f,s,su "MyBatch.cmd"

    But I suggest you use Windows Task Scheduler.
    LVL 6

    Expert Comment


    at 09:25 /Every:M,T,W,Th,F,S,Su script.bat

    Author Comment

    Running in Win XP...Never used task scheduler...any details would be appreciated...thanks
    LVL 43

    Accepted Solution

    Control Panel
    Scheduled Tasks
    Add Scheduled task
    Next through until choose program
    Browse for your batch file
    Give it a name
    Say Daily
    Choose time
    Every day
    Starting today
    (or whatever)
    Enter username and password to run it as

    Open Advanced properties.
    You may want to tick the box "only run when logged in" depending upon what it is for.


    LVL 43

    Expert Comment

    by:Steve Knight
    Thanks for points, hope it helped


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
    Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    730 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

    16 Experts available now in Live!

    Get 1:1 Help Now