Computing.Net > Forums > Programming > sys reboot XP - batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sys reboot XP - batch file

Reply to Message Icon

Name: Code One
Date: February 1, 2004 at 12:08:46 Pacific
OS: xp pro
CPU/Ram: pent 3 - 256mb
Comment:

hey upgraded to XP, long story, was kinda forced to do it, but it seems cool...

anyway, I would like to know what the reboot string would be so i can put it in my bat file and call i to run and reboot my system, I had it working in ME, but it looks like it changes, in XP....

so if someone could hook me up that would be swell...

code one



Sponsored Link
Ads by Google

Response Number 1
Name: Code One
Date: February 1, 2004 at 12:16:32 Pacific
Reply:

nevermind figured it out...

if someone wants to explain the attributes to me, that would be good...


thanks

co


0

Response Number 2
Name: Dr. Nick
Date: February 1, 2004 at 23:23:02 Pacific
Reply:

Hehe, why'd you give up ME?

As to your question, how did you go about getting it done? Here's how I would have done it.

XP, and 2000 I believe, come with a utility adeptly named 'Shutdown'. If you want to reboot your computer using a batch file, I'd put something like this in the file:

shutdown -r -t 20 -c "Called from batch."

That will cause the system to restart in 20 seconds, and will show the message in the quotes. By giving yourself 20 seconds, you can abort the shutdown by just running "shutdown -a" from the Run box, or a command prompt. Really, to restart the computer, all you need to use is "shutdown -r". To shut it down, use "shutdown -s".


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


help regarding library fi... A fun project for softwar...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: sys reboot XP - batch file

Win XP batch file problem www.computing.net/answers/programming/win-xp-batch-file-problem/11239.html

windows xp batch file, edit ....... www.computing.net/answers/programming/windows-xp-batch-file-edit-/9278.html

XP Batch File www.computing.net/answers/programming/xp-batch-file/14933.html