By Thomas Owens

2008-09-25 12:23:51 8 Comments

A Google search turned up software that performs the same functions as cron, but nothing built into Windows.

I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone.

Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically or via the command line?


@Cominvent 2018-11-09 12:51:32

Check out the excellent Cronical program at

It is a .NET program that reads a text file with unix-like cron lines. Very convenient to use. It will send emails if stdout just like unix cron. It even supports acting as the service runner.

@Pikesh Prasoon 2018-08-16 18:02:18

  1. You can use the Scheduled-Tasks API in PowerShell along with a config.json file for parameters input. I guess the minimum limitation is 5 minutes. A sample tutorial for very basic Schedule Tasks creation via APIs

  2. You can use the schtasks.exe via cmd too. I could see the minute modifier limitation to 1 minute on executing schtasks.exe /Create /?. Anyways AT is now deprecated.

enter image description here

Anyways, I am working on a tool to behave like CRON. I will update here if it is successfull.

@Dror Helper 2008-09-25 12:25:04

Use the Windows Task Scheduler to schedule tasks over time and dates.

@Zsolt Botykai 2008-09-25 12:55:46

Zcron is available free for personal use.

@fx-kirin 2017-09-12 07:35:22

Z-Cron excactly.

@user816347 2011-06-26 17:32:59

pycron is close match on Windows.

The following entries are supported:

1    Minute (0-59)
2    Hour (2-24)
3    Day of month (1-31)
4    Month (1-12, Jan, Feb, etc)
5    Day of week (0-6) 0 = Sunday, 1 = Monday etc or Sun, Mon, etc)
6    User that the command will run as
7    Command to execute

@Mithril 2018-06-19 03:04:45

This is not a conmmand-line tools. As I see, it only check if current time match your settings.

@Kubuntuer82 2019-07-01 07:24:31

This is merely a parser, it does not execute the tasks.

@Kris Kumler 2008-09-25 12:24:26

For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler

For command-line usage, you can schedule with the AT command.

For newer Microsoft OS versions, Windows Server 2012 / Windows 8, look at the schtasks command line utility.
If using PowerShell, the Scheduled Tasks Cmdlets in Windows PowerShell are made for scripting.

@Vlastimil Ovčáčík 2015-11-19 11:37:09

In Windows 10 at.exe is deprecated and won't run. schtasks.exe is difficult to use (e.g. won't run without admin privileges) and bugged (e.g. the /Z switch).

@Tarik 2015-12-13 18:29:44

what about windows 7?

@Kris Kumler 2015-12-14 16:47:05

@Tarik Windows 7 will support the Task Scheduler as well.

@jiggunjer 2016-08-03 01:39:19

My windows 7 cmd has AT and schtasks. Is there a difference/preference? Why have both?

@Kris Kumler 2016-08-05 00:20:52

On Windows 7, AT will be for one-time tasks to run; schtasks would be used for repeating tasks.

@Matt M. 2018-04-14 05:50:29

The Task Scheduler is such a dumpster fire of a piece of sofware. Everytime I open it there's a 50/50 chance it'll drop the framerate for the entire computer down to 3fps while trying to load a table view of like 6 items

@Kris Kumler 2018-04-18 15:47:47

lol, @MattM. If using XP still for things, there might be a bigger problem!

@Matt M. 2018-04-18 23:07:57

@KrisKumler The Windows Task Scheduler is shipped from version XP - 10. Sometimes it's easier just to click a few buttons than fiddle with a CLI. (of course, in the case of the task scheduler, it's definitely worth it to fiddle with the CLI)

@Franklin Yu 2018-11-20 21:21:28

The ScheduledTask Cmdlets API involves CimInstance here and there. It's very difficult to work with, because CimInstance does not provide any type information. For example, I want to know more details about the -Action parameter in Register-ScheduledTask.

@Saher Ahwal 2015-10-16 22:15:39

The At command is now deprecated

you can use the SCHTASKS

@shasi kanth 2012-09-10 04:51:42

There is NNCron for Windows. IT can schedule jobs to be run periodically.

@ckramer 2008-09-25 12:28:14

The closest equivalent are the Windows Scheduled Tasks (Control Panel -> Scheduled Tasks), though they are a far, far cry from cron.

The biggest difference (to me) is that they require a user to be logged into the Windows box, and a user account (with password and all), which makes things a nightmare if your local security policy requires password changes periodically. I also think it is less flexible than cron as far as setting intervals for items to run.

@Steve Bauman 2017-04-06 03:13:33

While cron is definitely superior to Windows tasks, you can actually use the computers 'SYSTEM' account which doesn't require a password and has full permissions to the local computer. Though this obviously has issues if you utilize external resources (such as a shared drive that requires domain creds).

@krowe2 2018-02-13 20:02:29

@SteveBauman The key is LOCAL RESOURCES, Windows might have the best task scheduler ever but if those task can only work on local resources it is 100% useless if you need to do something as simple as copy a backup to the local PC on a schedule.

@stephenbayer 2008-09-25 12:26:44

The Windows "AT" command is very similar to cron. It is available through the command line.

@Thomas Owens 2008-09-25 12:27:42

The link that you provided also directed me to the SCHTASKS command.

@enobrev 2008-09-25 12:38:13

If you prefer good ol' cron, CRONw is the way to go.

Supported systems

* Windows 2000 (any version)    works
* Windows XP (SP 2)             works
* Windows Server 2003           works
* Windows NT 4 (SP 6)           should work but not tested
* Windows 3.11, Windows 95,
  Windows 98, Windows ME,
  Windows XP beneath SP2        not supported by design

@Metafaniel 2015-03-09 19:08:12

I tried this one, and when I finally installed it and tried to test it, all I got was this message: We were asked to go - so I'm out finally... Any command I tried sent me that message. WTF? Is this project not active anymore or what's the meaning of that message?? THANKS

@enobrev 2015-03-10 20:39:21

@Metafaniel, I haven't had a Windows system in about 4 or 5 years, so I haven't really kept up. Googling that response only leads me to this page and I don't see anything on their site about shutting down. Looking at the sourceforge repo, it looks like it hasn't changed in about a decade, so I'm wondering if maybe there's some sort of conflict on your local system? Considering it's been that long since the last update, I would definitely say it's no longer active, though that is a really strange response.

@enobrev 2015-03-10 20:40:15

@Metafaniel I also downloaded and grepped the codebase for that message and found nothing. Good luck figuring out what's going on!

@LoMaPh 2018-12-07 22:42:23

@Metafaniel As mentioned in the post, for Windows beyond XP SP2 it is not supported.

@Przemek Kryger 2011-06-23 08:39:19

Not exactly a Windows version, however you can use Cygwin's crontab. For install instructions, see here: here.

@Michael Scheper 2013-04-26 02:06:44

This answer contains linkrot, but the StackOverflow question How do you run a crontab in Cygwin on Windows? is helpful.

@Adam Mitz 2008-09-25 12:30:44

Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically [...]?

Task scheduler API on MSDN.

@jm4 2008-09-25 12:27:50

In addition to Windows Task Scheduler you also have 'at' on Windows. I'm not sure how it differs from Task Scheduler besides the fact that it has a command line interface.

@leppie 2008-09-25 12:26:10

The 'at' command.

"The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command."

Related Questions

Sponsored Content

8 Answered Questions

[SOLVED] Visually managing MongoDB documents and collections

35 Answered Questions

[SOLVED] How do I install pip on Windows?

40 Answered Questions

[SOLVED] How can I develop for iPhone using a Windows development machine?

  • 2008-08-22 13:35:01
  • ryan
  • 1095110 View
  • 1147 Score
  • 40 Answer
  • Tags:   ios iphone windows

28 Answered Questions

[SOLVED] How can you find out which process is listening on a port on Windows?

23 Answered Questions

[SOLVED] Is there an equivalent of 'which' on the Windows command line?

23 Answered Questions

[SOLVED] How do I list all cron jobs for all users?

  • 2008-09-25 18:01:31
  • yukondude
  • 795622 View
  • 799 Score
  • 23 Answer
  • Tags:   unix cron

7 Answered Questions

[SOLVED] Cron and virtualenv

1 Answered Questions

[SOLVED] How to Run a JMeter Script as a Windows Cron Job

  • 2018-05-13 14:37:04
  • Chamindra Sulakshith
  • 407 View
  • 0 Score
  • 1 Answer
  • Tags:   cron jmeter cron-task

8 Answered Questions

[SOLVED] Executing multiple commands from a Windows cmd script

1 Answered Questions

Sponsored Content