How to schedule a Batch File to run automatically in Windows 7 | 8

There are occasions where you might need to schedule to run a batch file automatically in your Windows. In this article I’ll suggest a tip on how to schedule a batch file automatically using Task Scheduler.

Schedule a Batch File to run automatically

Step 1: Create a batch file you wish to run and place it under a folder where you have enough permissions. For example under C drive.

Step 2: Click on Start and under search, type in Task and click open Task Scheduler.

11 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 3: Select Create Basic Task from the Action pane on the right of the window.

2 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 4: Under Create Basic Task, type in the name you like and click Next.

3 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 5: From the Trigger select the option you like and click Next.

4 How to schedule a Batch File to run automatically in Windows 7 | 8

I chose Daily and clicked Next, which brought me to this screen.

5 600x192 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 6: Then click on Start a Program and click Next.

6 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 7: Now click on Browser and select the batch file you like to run.

7 600x174 How to schedule a Batch File to run automatically in Windows 7 | 8

Step 8: Finally, click on Finish to create the Task.

Now that we have created a Task, we have to make sure it runs with the highest privilege. Since we have UAC settings we have to make sure that when you run the file it should not fail if it does not bypass the UAC settings.

So click on Task Scheduler Library.

8 How to schedule a Batch File to run automatically in Windows 7 | 8

Then double click on the Task you just created.
Step 8: Click on Run with Highest privilege then click OK.

9 600x446 How to schedule a Batch File to run automatically in Windows 7 | 8

Congratulations!  You have successfully created a Scheduled Task to automate a batch file.

Posted by on , in Category Windows with Tags
Shyam aka “Captain Jack” is a Microsoft MVP alumnus and a Windows Enthusiast with an interest in Advanced Windows troubleshooting. Suggestions made and opinions expressed by him here are his personal one's and not of his current employers. He blogs at captaindbg.com.
  • http://www.boxaid.com/ PC Support

    this is exactly what i was looking for. thx!

  • Onlypq

    Hi, not sure if you can help; My batch file is kicking of a powershell script, it starts the script then it hangs.
    Do you know what could be the problem

  • Guest

    Thank you!

  • Maryia30b

    thank you so much))))

  • Oliverofthenight

    Does not work.
    Followed instructions exactly
    Getting error: “Windows cannot find ‘file.bat’.
    The pathing is correct.

  • Ashok Sahu

    Hey Thankxxx a lot for sharing this idea…

  • Afdsa

    Thanks!!! Great Help….

  • Arun

    Thank you, it worked……….

  • alex

    on windows 8 it runs in background and is a pain in the butt to make run on foreground. Please help

  • Mahesh Kumar A

    thanks bro.

  • http://facebook.com/larrylwilson LightnLar

    Thanks for the explanation, my batch file works now.

  • rohitbindal

    How to give the destination folder path for backup tasks

  • KCR

    Exactly what I was looking for! Thank You!

  • Andrei

    Simply great!

  • Mostafa Amine

    this was helpful n clear, thanks for your help! :)

  • luuz

    wooow it is cool
    auto virus runer created

  • Jake Roberts

    Very nice Tutorial. How to make it run several times a day on it’s on (Scheduled) and what is the Hidden for?

  • Lilian

    can not recognize the shared drive when i was trying to export a file. if I double click the .bat file, it works, but did not work through task schedule. Any help will be much appreciated!

  • Roberto Lenti

    Don’t work, the task won’t start even if i stat it manually on task scheduler.
    Starting the bat on dos prompt run perfectly.

  • Recent Comments