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,999 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

713 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