I used at
to create a scheduled task that ran at 9:02 every week day:
at 09:02 /every:m,t,w,th,f C:\path\to\my\batchfile.bat
However when looking at the task in the scheduled tasks control panel all you see is At<id number of at job> e.g. At1
. I wanted a nice descriptive name like "CheckMyConnection" not the criptic AtX
Enter schtasks (wrapped for readability the command should all be on one line):
schtasks /CREATE
/RU SYSTEM
/SC WEEKLY
/TN "CheckLink"
/D MON,TUE,WED,THU,FRI
/ST 09:02:00
/TR C:\path\to\my\batchfile.bat
Run a job on the 17th of every month at 08:02AM
schtasks /CREATE
/RU SYSTEM
/SC MONTHLY
/TN "SendRichohCount"
/D 17
/ST 08:02:00
/TR c:\path\to\my\script.vbs
The problem with both at
and schtasks
is that I couldn't figure out how to create a scheduled task that runs multiple times daily. Such as at 09:02:00 and 15:02:00.
0 Comments