Results 1 to 11 of 11
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    schedule a restart (xp sp2)

    Is there a way to shedule XP to automatically do a restart at a predetermined time each day?

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,592
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: schedule a restart (xp sp2)

    See this: Shutdown & Restart Shortcuts. You can put the command in a batch file and use the Windows task scheduler to execute the batch file whenever you want.

    Joe
    Joe

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    Thanks,
    However I must admit my naivety . How do I create a batch file? I was able to type the command line on the "Run" box and it worked, but have never done a batch file.

  4. #4
    3 Star Lounger
    Join Date
    Nov 2004
    Location
    Nottingham, Nottinghamshire, United Kingdom
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    Hi Rick. Creating a batch file is as simple as typing the commands you want to run into Notepad (or your text editor of choice), then 'save as' [filename].bat

    Hey presto! One batch file.
    <font color=448800><font face="Comic Sans MS"><big>Lyra J </font color=448800></font face=comic></big>
    <img src=/S/flags/UK.gif border=0 alt=UK width=30 height=18> Ducking the arrows in Robin Hood country <IMG SRC=http://www.wopr.com/w3tuserpics/Lyra_J_sig.gif ALT="No, Admins, no! I'm sorry, okay!" title="No, Admins, no! I'm sorry, okay!">

  5. #5
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    ok, I made it past all this and created a batch file that stated: Shutdown -r -t 20
    I also made a another batch file to abort the shutdown: shutdown -a
    I then ran the first one, and the dialog box started the 20 second count down. I then ran the second one to see if I could abort it and it did!!
    However, now it doesn't work. I ran the first one again and the dos screen opened and it scrolled the batch line command without stopping. I had to close out of the dos screen. I rebooted the regular way, deleted my batch file, created a new one, but the same thing is happening! DO YOU KNOW WHY?
    It worked perfectly first time, then this. What could be causing this.

    thanks,

  6. #6
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    thanks for the help, however, now it isn't working. see my latest post

  7. #7
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,592
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: schedule a restart (xp sp2)

    Any messages in the console window?

    Joe
    Joe

  8. #8
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    when you say "console window", if you mean the black dos looking screen, no. It is this black window that the batch file line scrolls, (like movie credits, but very very fast). It is the same line over and over and doesn't stop unless I intervene.
    If you mean something else, there is no other windows or dialog boxes that come up.

  9. #9
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Columbus, Ohio
    Posts
    234
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    I thought I would attach the batch file I wrote, just to see if there you can duplicate the problem on your computer. I zipped the file because I don't think it allows a .bat file to be attached.This is so frustrating because it did work the very first time.
    thanks for your efforts

  10. #10
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: schedule a restart (xp sp2)

    To save others having to download and unzip, I've taken the liberty of reproducing it here:

    Filename: Shutdown.bat
    <code>shutdown -r -t 20</code>

  11. #11
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,592
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: schedule a restart (xp sp2)

    Add a 'pause' command at the end of your batch file. That should keep the window open and enable you to examine the contents. BTW, are you still loggoed on as the same user?

    Joe
    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •