Solved

How can I schedule a task to run more frequently than 1 minute (ex every 10 seconds)

Posted on 2011-02-11
2
1,957 Views
Last Modified: 2012-05-11
I have a scheduled task in Windows Task Scheduler that I need run more frequently than every 1 minute. The smallest increment available in the "Edit Trigger" window is only one minute. Can someone provide step by step instructions on how I can configure my task to run more frequently than one minute.
0
Comment
Question by:neilsav
  • 2
2 Comments
 
LVL 5

Expert Comment

by:skrga
ID: 34871737
Paste code belov in notepad and save as .vbs file
then add that script to task manager. (afcourse modify to suit your needs)

this script run notepad.exe every 1 seconds for 4 times

Set WshShell = WScript.CreateObject("WScript.Shell")
For i = 0 to 3
      WshShell.Run ("notepad.exe")
      WScript.Sleep(1000)
Next

Open in new window

0
 
LVL 5

Accepted Solution

by:
skrga earned 500 total points
ID: 34871775
this runs notepad.exe 6 times per minute, every 10 seconds

Set WshShell = WScript.CreateObject("WScript.Shell")
For i = 0 to 5
      WshShell.Run ("notepad.exe")
      WScript.Sleep(10000)
Next
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question