You are here: > >

How to run a batch file at a specific time

Batch fileOften, 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.

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

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

  1. Click Start
  2. Type Task and then click Task Scheduler

Once the Task Scheduler is open, you can create your own custom task by clicking Create Basic Task. This action starts a wizard that walks you through the process, prompting you with what program you want to execute, as well as how often and what time it should be run.

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.

  1. Click Start
  2. Type Task and then click Task Scheduler

or

  1. Click Start
  2. Click All Programs
  3. Click Accessories > System Tools > Task Scheduler

Once the Task Scheduler is open, you can create your own custom task by clicking Create Basic Task. This action starts a wizard that walks you through the process, prompting you with what program you want to execute, as well as how often and what time it should be run.

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.

  1. Click Start
  2. Click Programs
  3. Click Accessories > System Tools > Scheduled Tasks

Once open, you can create a custom task by clicking Add Scheduled Task to start the wizard. The wizard will prompt you with what program you want to execute, how often you want to run it (daily, weekly, monthly, one time only, when my computer starts, and when I log on), the time you want to run, and how often each day to run.

Additional information