Name A Scheduled Task From The Command Line or Batch File
Posted on 2011-03-04
I have a batch file that I run on several servers to schedule a task:
at 12:00 /Every:F C:\clean_n_defrag.bat
The name of the task ends up being At1 (or At2, At3, etc depending on the names of existing jobs)
Using the above AT command, is there a way for me to establish the name of the task as it is created?
If not, is there something I can run next that will rename and existing task? (In this case, renaming At1 to something like "Weekly Cleanup and Defrag)