Wednesday, September 21, 2005

Command-ling Scheduling in windows


(thx to Senthil)

Ever thought on how to schedule a job to execute at regular intervals on MS-Windows NT/2000 like Cronjob in unix. Windows scheduler is there for the GUI-dependents, but is there a soul-renderer for the command liners??
10 marks to Griffindors (????) for guessing it right. The answer is YES.


-- To Add job to scheduling queue --
For eg : To Run batch job program iyo.BAT at 02H00 every Sunday morning

AT 02:00 /EVERY:SUNDAY "C:\BATCH\iyo.BAT"

-- To List jobs in scheduling queue --

AT

-- To Remove all jobs from scheduling queue --

AT /DELETE /YES


Dont forget that the AT command does not utilize the PATH environment variable, but uses absolute path name to the batch file and other commands