Learn how to a build a cloud-first strategyRegister Now


crontab or something simillar on windows xp

Posted on 2006-06-06
Medium Priority
Last Modified: 2008-02-01
I would like to run the following ms-dos command
rmdir c:\soij /s /q
every 12 hours on windows xp, how can I set it
to run even If I reboot or shutdown my PC
I would like to do it at 9am and 9pm.
Question by:aplelois
  • 3
  • 2
LVL 23

Expert Comment

ID: 16841033
well it won't run if your computer is turned off!

You can use either the scheduled task manager

Start/All Programs/Accessories/System Tools/Scheduled Tasks

OR you can use the AT command on the command line (dos prompt)

For AT command usage type

AT /?

in the dos prompt.
LVL 23

Expert Comment

ID: 16841045
If you use AT then you can program your dos command directly into the AT task.

If you use Sceduled Tasks you will have to create a batch file containing the command/s you want to execute and get scheduled task to execute that.

Either way is easy peasy.

Author Comment

ID: 16841093
ok, but whats the command to run c:\del.bat everyday at 9am and 9pm ?

Author Comment

ID: 16841098
and how do I stop it
LVL 23

Accepted Solution

basicinstinct earned 2000 total points
ID: 16841270
There's also a schtasks command:


That's the most powerful (as powerful as the gui), but I've never used it (just use the darn gui instead).  I also noticed you are just running a batch file, so you can run it directly from the Sceduled Tasks Manager.

If you want to run it from the command line using AT here you go:

at 9:00 /every:M,T,W,Th,F,S,Su c:\del.bat
at 21:00 /every:M,T,W,Th,F,S,Su c:\del.bat

to see those jobs, just type AT

To delete them, you reference their job ID (Which you get by just typing AT)
Eg, to delete job 1

at 1 /delete


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question