How do you schedule tasks in Windows? *

Question

I run into a situation every couple of months where I need to develop a solution that's scheduled to run periodically, but I haven't found a way to handle this in Windows that I'm entirely happy with. Every time I do it, I end up feeling corralled into using a Windows Service, which seems to be an unacceptable amount of overhead for something I could do with a cron job in Unix.

Am I missing something here? What have you used to schedule an application in Windows?


@Karl Yes, I am and I should have been clearer about something. I've been steered away from Scheduled Tasks from the people I work with towards Services, but have never really gotten a clear reason for this. I haven't been a heavy Windows user in about 10 years, and have only recently started developing for the platform, so I'm rather unfamiliar with the ups and downs of certain parts of it.

@sasb The at command is new to me and seems like it may be what I'm looking for. The links suggest it's for Windows 2000 and that it's been superseded by SCHTASKS. I'm guessing this is the command line window into the Scheduled Tasks piece in Windows.

Answer

Use the at command

AT.exe

How To Use the AT Command to Schedule Tasks

SCHTASKS is a CLI for Windows Scheduled Tasks.

< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/429/" >How do you schedule tasks in Windows?< /a>
Share on Google Plus

About Cinema Guy

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment