I'm trying to schedule a task to run every 15 or 30 seconds. It's a quick and easy polling task that usually only takes 1 second to complete, 5 at most if any service fails. I've been using SCHTASKS to schedule it to run every minute, but have been unable to increase the interval to something less than a minute. Here's what I've been trying, which does not work because it sets the task to run every full minute anyway, regardless of the 15 second setting in the start time:
C:\>schtasks /create /tn "Service Monitor xx_xx_15" /tr "service-monitor.exe" /sc MINUTE /st 10:10:15
When I submit the above command the task gets scheduled for 10:10:00, as you can see here:
Service Monitor xx_xx_15 10:10:00 AM, 9/14/2006
Please help! Thank you!