Often, batch files are created to perform specific tasks, such as cleaning up a directory, copying certain files, etc. You may need to run a batch file at a specific time or at a certain time every day. Below is additional information about how to do this.

Run a batch file at a specific time in Windows 8 and 10

  • Click Start
  • Type Task and then click Task Scheduler

Once the Task Scheduler is open, you can create a custom task by clicking Create Basic Task, opening a wizard that walks you through the process. Select the program to execute, how often to run it, and when.

  • Windows 8 and 10.
  • Windows Vista and 7.
  • Windows XP and earlier.

Run a batch file at a specific time in Windows Vista and 7

Starting with Windows Vista, Microsoft has included the Task Scheduler, a software program designed to run any program, including batch files, at any time or any schedule you desire. To run Task Scheduler, follow the steps below.

or

  • Click Start
  • Click All Programs
  • Click Accessories > System Tools > Task Scheduler

Run a batch file at a specific time in Windows XP and earlier

With Windows 98 and up to Windows XP, Microsoft has included Scheduled Tasks, a software program designed to run any program, including batch files, at any time or any schedule you desire. To run Scheduled Tasks, follow the steps below.

  • Click Start
  • Click Programs
  • Click Accessories > System Tools > Scheduled Tasks

Once open, you can create a custom task by clicking Add Scheduled Task, opening a wizard that walks you through the process. Select the program to execute, how often to run it, and when.

  • How to execute commands in a batch file in timed intervals.
  • See our batch file definition for further information and related links.
  • Batch file help.