none
How to run task every 30 seconds RRS feed

  • Domanda

  • Hi

    i want to make a task which run my app every 30 seconds. how to accomplish this in win 7 ?

    thanks


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    giovedì 5 aprile 2012 07:30

Tutte le risposte

  • Take a look at the following link

    http://www.7tutorials.com/advanced-users-task-creation-task-scheduler

    Anyway, according to what I Know, you cannot set a repetition interval lower than one minute.

    Bye.


    Luigi Bruno - Microsoft Community Contributor 2011 Award


    giovedì 5 aprile 2012 08:33
    Moderatore
  • I know this but what seetings should i change to accomplish this ?

    thanks in advance


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    giovedì 5 aprile 2012 13:04
  • Hi ,

    The least repetition interval value of task scheduler must be 1 minute. You can create a task to run an app every minute. But it cannot be set to 30 seconds. This is by design. Would you like to tell me what app you want to schedule?  The following article for your reference: http://technet.microsoft.com/en-us/library/cc748841(v=ws.10).aspx

    venerdì 6 aprile 2012 07:11
    Moderatore
  • Thanks

    yes, i want to take a screenShot of the client's desktop every x seconds.


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    venerdì 6 aprile 2012 07:57
  • Thanks

    yes, i want to take a screenShot of the client's desktop every x seconds.


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    Try open source coded projects that are out there.  Most are free, and without going into detail and naming names (of programs) they'll do what you want to accomplish.  Spy on the client...have just tried 2 very goods ones myself...but for my own security.  Kept the one, BTW if you ate your vitamins in the morning maybe you'd have the energy to check on 'em....theres a hint here somewhere.  Good Luck

    Horatio


    ps...just read my reply again.  Theres actually more than one hint.
    venerdì 6 aprile 2012 11:00
  • Hi ,

    Firstly, I still would like to say that this goal cannot be achieved by creating a scheduled task.

    Why did you want to collect the screenshots for the client’s desktop every 30 seconds?

    Also, you may go to check if the Problem Steps Recorder can help collect the information which you would like to obtain.

    The Problem Steps Recorder in the Windows 7 operating system is a feature that enables users to record their interactions with an application and provide a detailed screen-by-screen view with accompanying information.

    If the above information does not help, you may need to find a special program or write a script for it.

    lunedì 9 aprile 2012 09:36
    Moderatore
  • Thanks

    it's good thing but does not help me.

    thanks again


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    lunedì 9 aprile 2012 16:30
  • Similar issue i met, i have a task need run immediately after create it, so i set /st as current time plus 10 secs. the problem is if current time is like 23:51:30, after trimmed the /st is 23:51:00, so the task will never run, so my current solution is plus 70 secs, not the best way, still searching...
    giovedì 8 novembre 2012 05:43
  • Hi

    i want to make a task which run my app every 30 seconds. how to accomplish this in win 7 ?

    thanks


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    Can you post the code you want to run every 30 seconds?
    giovedì 8 novembre 2012 06:56
  • i hope you have got the answer to this question in this 2 long years

    but if not
    then follow the below steps
    1.Create the task with 5min interval.

    2.Export the task in .xml format.

    3.Open .xml file with Notepad.

    4.Change the Interval parameter from 5M (it denotes five minutes) to as per your requirement.

    5.Save the changes.

    6.Import the new updated file in Task Schedular.

    7.When a pop up of settings is displayed, Just click OK.

    8.Your task with the custom duration is ready.

    Note: Min time duration is one minute.

    So you have to schedule two such type of tasks 30 seconds apart.

    mercoledì 23 luglio 2014 13:26
  • Lol it's much easier:

    1. Create .bat file such:

    ---

    :start

    your command

    rem make 2 tries to ping itself (every try is paused for 1 sec)

    ping /n 2 localhost  > nul

    goto :start

    ---

    you can change 2 for 30 and get 30 sec wait.

    After that add this bat file to your scheduler with 10min interval. It means your command will be executed every X seconds until crashed and will be restarted in 10 min by scheduler.

    Don't forget not to create parallel instances (the setting in scheduler)



    • Modificato a_TnT_ martedì 26 agosto 2014 19:13
    martedì 26 agosto 2014 18:59
  • Lol it's much easier:

    rem make 2 tries to ping itself (every try is paused for 1 sec)

    ping /n 2 localhost  > nul

    LOL - it becomes much easier again (and much more accurate) if you use timeout.exe instead of ping.exe. Timeout is available at least with Windows 7.

    martedì 26 agosto 2014 19:27
  • Yes, timeout /t 30 is also a solution (in Win7,8))
    • Modificato a_TnT_ mercoledì 27 agosto 2014 17:29
    mercoledì 27 agosto 2014 17:27
  • Have you tried creating two tasks both of which run every 1 minute every day, one starting from 0:00:00 and the other starting from 0:00:30?
    martedì 13 giugno 2017 07:15
  • You can and can't do this.. 

    Task scheduler will require a 1-min interval at the minimum.. 

    You can however Batch script it with wait commands to run every 30 seconds.. but that's a lot of copy and pasting..  It will work though.. 

    For instance.. 

    do this.. 

    Timeout /t 30 

    do this... 

    timeout /t 30 

    etc..

    Alternately you can setup your script to run every 1min from the Task manager.. and just put the Timeout /t 30 in the script and duplicate it once..

    For instance..

    Task manager runs it every min, at the end of the script put timeout /30 and the same thing in it.. than it will run every 30 seconds.. but you can just use Task manager to run it every 1min..

     


    Rob


    • Modificato themanindbox martedì 13 giugno 2017 17:00
    • Proposto come risposta themanindbox giovedì 19 ottobre 2017 18:42
    martedì 13 giugno 2017 16:51