Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

2 Answers

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
add comment

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
add comment

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.