Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Windows AT command has an "every" parameter, which can take days of the week, and a "time" parameter specifying the time of day, however I'd like to run a command every 5 minutes. Any way to do this? I've looked at some similar questions, but nothing gives an actual example of the command line syntax for this.

I'm running Windows 7. Thanks!

share|improve this question
up vote 4 down vote accepted

Answer to your question is no, but on the other hand you can use even better utility called schtasks.

This should be up every 5min

schtasks /create /tn "CLICKCLACK" /tr tiktak.bat /sc minute /mo 5

share|improve this answer
Awesome! Much better than the old AT command. – Mike Christensen Nov 15 '12 at 17:27
Oh one issue with this is it pops up a command prompt on the screen every 5 minutes, which is kinda annoying. Any way to get it to run the command silently? It's just a console program (EXE) I'm running. – Mike Christensen Nov 15 '12 at 17:31
Run with /RU as another user should help OR here is another solution… – week Nov 15 '12 at 17:37
The VBS wrapper works.. Good enough for now! Thanks.. – Mike Christensen Nov 15 '12 at 17:41
One more note - while the 'schtasks' command can't be used on a remote computer, you can schedule the schtasks command to be executed on a remote computer using the at command. – lordcheeto Jun 2 '15 at 2:08

You can create a Scheduled Task that is configured a job every five minutes. For example, I used the Task Scheduler tool to create a simple job that repeats every five minutes. If you want to use an interval that isn't available on the drop-down list, you can use the schtasks command, with which you can specify an interval in whole minutes.

Detailed information about the Task Scheduler:

Detailed information about the schtasks command:

Here, I'm displaying the properties of the task with the schtasks command:

C:\>schtasks /query /v /tn Test /fo list

Folder: \
HostName:                             MyComputer
TaskName:                             \Test
Next Run Time:                        11/15/2012 12:30:07 PM
Status:                               Ready
Logon Mode:                           Interactive/Background
Last Run Time:                        N/A
Last Result:                          1
Author:                               DOMAIN\user
Task To Run:                          xcopy c:\temp\file1.txt c:\temp\files2.txt /Y
Start In:                             N/A
Comment:                              N/A
Scheduled Task State:                 Enabled
Idle Time:                            Disabled
Power Management:                     Stop On Battery Mode, No Start On Batteries
Run As User:                          SYSTEM
Delete Task If Not Rescheduled:       Enabled
Stop Task If Runs X Hours and X Mins: 24:00:00
Schedule:                             Scheduling data is not available in this format.
Schedule Type:                        Daily
Start Time:                           N/A
Start Date:                           N/A
End Date:                             N/A
Days:                                 Every 1 day(s)
Months:                               N/A
Repeat: Every:                        0 Hour(s), 5 Minute(s)
Repeat: Until: Time:                  None
Repeat: Until: Duration:              24 Hour(s), 0 Minute(s)
Repeat: Stop If Still Running:        Disabled
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.