Dv ramesh 2008-04-07 04:06:12
Please help me How to use AT command for every 15minutes?
from the below it works for every weekday at 10.00AM
AT \\OurServer 10:00 /INTERACTIVE /EVERY:M,T,W,TH,F “C:\notify.bat”
But I want to execute the same for every 15 minutes on every weekday.
Thanks in advance,
Mr_unreliable 2008-04-07 04:06:24
I don’t know anything about the “AT” command, so I looked it up
here: “How To Use the AT Command to Schedule Tasks”, found at:
On that page, it implies that you can run your task every day
of the week, but only _ONCE_ (at the time you specify).
So, it looks like you have two options.
Option One: use several AT’s to schedule your task “every
fifteen minutes, i.e,:
AT \\OurServer 10:00 /INTERACTIVE /EVERY:M,T,W,…
AT \\OurServer 10:15 /INTERACTIVE /EVERY:M,T,W,…
AT \\OurServer 10:30 /INTERACTIVE /EVERY:M,T,W,…
AT \\OurServer 10:45 /INTERACTIVE /EVERY:M,T,W,…
Option Two: use a script to run your task. That is, use
the “AT” command to schedule the SCRIPT, then use the
script to run your task.
AT \\OurServer 10:00 /INTERACTIVE /EVERY:M,T,W,… “C:\myScript.vbs”
Where your script has a loop to run your task, then
sleep for 15 minutes, then go back an run it again,
and continue with that until finished for the day:
WScript.Sleep 15*60*1000 ‘ sleep 15 minutes
Loop Until (time = myQuitTime)
Mike g 2008-04-14 02:36:14
If you are on Win XP or Win2003, use the “schtasks” command!
This command will schedule a job to run every 15 minutes:
schtasks /create /sc minute /mo 15 /ru “System” /tn “
So to create a schedule called Do Something, to start C:\MyDir\xyzzy.cmd
every 15 minutes, use:
schtasks /create /sc minute /mo 15 /ru “System” /tn “Do Something” /tr
There is also syntax for creating the schedule on a remote system. For more
info, enter schtasks /? from the command prompt.
Asdf 2008-08-18 15:23:53
And provide for a routine that checks regularily
that only your tasks are scheduled, and not some you
do not know of.
Stuff you still get on 2007 windows when firewall is not enabled.