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,903 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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now