user2773547
user2773547

Reputation: 1

C# - Invoking an application periodically

I am not seeing any good options other than using windows services to invoke a method() to run periodically.

Any suggestions?

Upvotes: 0

Views: 880

Answers (1)

3Dave
3Dave

Reputation: 29041

You can add a script (or executable) to the Windows task scheduler. This is available in Control Panel and is labeled either "Task Scheduler" or "Scheduled Tasks" depending on what version of Windows you're running.

Some things are better implemented in services, but the task scheduler suffices for anything that doesn't have to run super-frequently.

For Win7 (or Server 2008), see http://windows.microsoft.com/en-us/windows7/schedule-a-task

Also, see this answer for more information.

Update

If you only need to call a web service, and don't care much about the result, you can use curl or wget via the task scheduler.

Upvotes: 1

Related Questions