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.

I have an exe, lets call it MyProgram, that I run from the command line with arguments, like so:

MyProgram.exe -u USERNAME -p PASSWORD

My problem is, that I need to run this program, let it run for 30 minutes, then terminate the program, do nothing for one minute, and the repeat this process indefinitely. I have no idea were to even start.

Thanks in advance.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Well, you should use the task scheduler to do that... Press the Windows key, type "task" (dépending on your local though. If your Windows is french, it's called "Planificateur de tâches", and so on...) and run it.

Then select "Create a task", and fill in the following informations :

  • Name: A name for your task
  • Description : Explain what it does and when it's supposed to run
  • (in "Trigger" tab) : Click "New..." then "Each day", and "Repeat the task every '31 minutes'" in the advanced parameters (Important note : The field seems to be a dropdown box, but you can type in your own value !)
  • Also be sure to click "Stop the task if it's running more than 30 minutes"

Your task will be automatically be run the way you asked.

share|improve this answer
    
Thank you, it seems to have worked. I would up mod your post but I lack the rep. –  bionsuba Nov 18 '12 at 17:05
    
I think it's called Task Scheduler. –  Lamb Nov 20 '12 at 19:18
    
You may be right. I must admit I translated my french version... :) Corrected –  Orabîg Nov 20 '12 at 19:29
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.