crontab or something simillar on windows xp

Posted on 2006-06-06
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
    LVL 23

    Expert Comment

    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

    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

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

    Author Comment

    and how do I stop it
    LVL 23

    Accepted Solution

    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
    Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now