Previously, I wrote an article on how to create your own batch files using regular DOS commands and today I will talk about how you can schedule that batch file to run in XP. This is very useful for servers or specific computers that require the same tasks to be performed on a routine basis, such as copying data or deleting files.
To get started, create a batch file and put it in the appropriate directory on your computer or server. Now go to the Control Panel and choose Scheduled Tasks.
Now, click on the Add Scheduled Task link to bring up the Schedule Task Wizard.
Click and then click Browse. Navigate to the location of your batch file and select it.
Now type in a name for your task and choose a schedule (daily, weekly, monthly, one time, etc).
Depending on what you choose, the next screen will allow you to customize exactly what days and times you want the batch file to run. Here is chose weekly:
Finally, enter in the credentials for an Administrator account on the computer so that the task can run without any problems.
And that’s it! Click Finish and your task will now show up in the list of scheduled tasks. Your batch file is now scheduled to run according to the schedule you created.
If you have any problems setting up your batch file as a scheduled task, feel free to post a comment here and I will help! Enjoy!



[...] on as many drives as you like for whenever you like! Also, be sure to check out my post on how to schedule a batch file to run in XP. Enjoy! AKPC_IDS += "3943,";Enjoyed this post? Subscribe to Help Desk Geek via RSS Feed or via [...]
[...] if you want to write some kind of script to merge, split, or rotate PDF documents and then schedule the script to run using the Scheduled Task wizard. Enjoy! [via NirmalTV] AKPC_IDS += "14055,";Enjoyed this post? Subscribe to Online Tech Tips via [...]
Aseem, thanks for the helpful article. I have a scheduled task that I run every minute and the flashing of the command line on the screen is distracting. Is there a way to prevent the command line from flashing but still allow the bat file to run?
Thanks!
Aseem, Thanks a lot for this precious article. I am trying to set a shedule task to shutdown a computer using a batch file.
The expression I used in cmd prompt is
shutdown -s -t 120
But at the sheduled time the specified action is not taking place instead the in the command prompt this command (shutdown -s -t 120) is coming in an infinite loop.
Can you please advise me to rectify it.
Hope I have explained the problem correctly.
Thanks in advance
KPS