Change task time on Windows

Asked

Viewed 1,315 times

2

I need to configure a Windows job to run every 30 seconds, but the task scheduler has a minimum time of 1 minute and if I try to change to (30 seconds || 0.5 minutes || 0.5 minutes) I always get the same error message:

inserir a descrição da imagem aqui

If you know some way to solve this, who knows some script where I can determine some time interval between one run and another or maybe some way to perform an advanced configuration who knows.

  • 2

    The question is yes part of the scope of the site.

1 answer

2


My advice to you is: create a Windows service, That’s what they’re for.

In Windows task scheduler it is impossible to create triggers with less than 1 minute repeat.

On the other hand, it is possible to define multiple triggers. To be able to run your task every 30 seconds, you will need two triggers that repeat every 1 second, where one of them starts the X hours and another start 30 seconds after the X hours.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • 2

    That’s exactly what I found here: https://superuser.com/questions/293445/windows-task-scheduler-scheduletask-to-run-once-every-10-seconds/668074#668074 Thanks for the tip +1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.