Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-11
2
Medium Priority
?
2,126 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

971 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