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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
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:…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

861 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