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

In my windows, I want to schedule a windows service to start once every 10 seconds. I tried using the windows task scheduler but it only gives me an option to repeat the service daily, weekly and monthly.

Is there a way I can schedule the windows service to start once every 10 seconds using windows task scheduler?

What could be done?

share|improve this question
1  
After the service is started you can just execute the operation you want every 10 seconds from inside the service. – mrnx Jun 6 '11 at 8:18
    
What are you trying to execute every 10 seconds please? – KCotreau Jun 6 '11 at 11:17
    
+1 Is that possible? – alex Nov 4 '12 at 0:13
up vote 1 down vote accepted

To do that, you should write a windows service, as that is what they are for.

share|improve this answer

A Windows Task Scheduler trigger cannot repeat more often than every 1 minute, but you can set up multiple triggers. To run a task every 10 seconds, add six Triggers. Each one should run the task Daily, and Repeat task every 1 minute. Their start times should be 12:00:00 AM, 12:00:10 AM, 12:00:20 AM, 12:00:30 AM, 12:00:40 AM, and 12:00:50 AM.

Edit Trigger dialog

Silly, but it works.

share|improve this answer
    
I can confirm that this works, thanks for sharing this. Easiest solution I have seen. – Abela Jan 11 at 1:05
    
See this Stack Overflow Answer for a convenient way to create many triggers for one task by exporting it to a text file. – Andre Jan 13 at 15:31

Your Answer

 
discard

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.