Computing.Net > Forums > Windows XP > Reboot Command Line (DOS) in XP

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.

Reboot Command Line (DOS) in XP

Reply to Message Icon

Name: kapcreations
Date: January 22, 2005 at 17:29:33 Pacific
OS: XP
CPU/Ram: P4/2GB
Comment:

I saw a thread on Google from this site where a user was wanting to know how to reboot from the command line, or reboot from "DOS" in Windows XP.

XP Ships with shutdown.exe, and is also found on Windows Server 2003. You can download a copy for Windows 2000, and Windows 2000 server as it is found in the AdminPak.msi suite of software. XP a& Win server 2003 ship with the .exe.

the windows XP/2003 uses the "-" as the flag seperator, but windows 2000 uses the "/" as the flag seperator

for XP, go to the command prompt and type:

shutdown /?

this will show all of the available options. I use it all the time to reboot my servers in the middle of the night via a scheduled .bat file

this is a sample of how to reboot in 60 seconds, with a comment to the popup

shutdown -r -t 60 -c "Rebooting computer"

to cancel, just type

shutdown -a

- Klint Price

ammendment to:
http://www.computing.net/dos/wwwboard/forum/13752.html



Sponsored Link
Ads by Google

Response Number 1
Name: XpUser
Date: January 22, 2005 at 17:48:24 Pacific
Reply:

Just a curious question... what's the advantage of booting from the command line verses going through the normal shutdown routine?

i_XpUser


0

Response Number 2
Name: XpUser
Date: January 22, 2005 at 17:50:37 Pacific
Reply:

typo ...what's the advantage of booting from...

should read

what's the advantage of rebooting from

i_XpUser


0

Response Number 3
Name: setishock
Date: January 22, 2005 at 18:31:52 Pacific
Reply:

It can be added to a script file or a batch file triggered by an entry in the scheduled tasks module of windows, and command the system to either shutdown or reboot.
For exsample, At a certain time and if user activity is nill then run system managerment programs and reboot.
If memory serves, I do believe you can go as far as adding a message to be broadcast to users as to the shutdown or rebooting of the system.
It's not a dos command. It's built into the windows(xp) command library. The only thing I can see using it for would be automation of functions not requiring human intervention.
I pity him if his server hangs on boot up and he doesn't know it till the next day...


I may be crazy, but I'm not stupid...


0

Response Number 4
Name: jboy
Date: January 22, 2005 at 19:33:20 Pacific
Reply:

Gosh - I'm sure the Original Poster from a year and a half ago will be pleased by this 'amendment' to his question in the DOS forum - sometimes it's worth waiting


I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Reboot Command Line (DOS) in XP

quasi dos in xp www.computing.net/answers/windows-xp/quasi-dos-in-xp/165083.html

OLD DOS in XP www.computing.net/answers/windows-xp/old-dos-in-xp/137580.html

command line Windows XP uninstall? help! www.computing.net/answers/windows-xp/command-line-windows-xp-uninstall-help/17790.html