shutdown or restart by commands? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 03-03-2004, 10:17 PM   #1 (permalink)
Newb Techie
 
Join Date: Feb 2004
Posts: 7
Default shutdown or restart by commands?

How can I shutdown or restart my Windows by commands? Thanks for your helps!
__________________

Storm is offline  
Old 03-03-2004, 10:42 PM   #2 (permalink)
Banned
 
Join Date: Jan 2004
Posts: 509
Send a message via AIM to yashar
Default

********
__________________

yashar is offline  
Old 03-04-2004, 12:11 AM   #3 (permalink)
Banned
 
Join Date: Feb 2004
Posts: 241
Thumbs down

*******
stan-the-man is offline  
Old 03-04-2004, 12:34 AM   #4 (permalink)
Super Techie
 
Join Date: Feb 2004
Posts: 416
Send a message via AIM to chog
Default

Yes you can, well if you are running windows xp. Go to run and type "shutdown -s" without quotes.

You can also use "shutdown -r" for restart

use "shutdown -s -t<value>" for a timed shutdown.
Ex: shutdown -s -t30 to shutdown in 30 secs

use "shutdown -a" to abort shutdown

let me know if this helps, i use desktop icons with those as the target to shutdown and restart.
chog is offline  
Old 03-04-2004, 04:20 AM   #5 (permalink)
True Techie
 
Join Date: Jan 2004
Posts: 164
Default

correct chog, there are also some command related to rundll32.exe :

rundll32.exe shell32.dll,SHExitWindowsEx 1 -> shutdown
rundll32.exe shell32.dll,SHExitWindowsEx 2 -> restart
rundll32.exe shell32.dll,SHExitWindowsEx 8 -> shutdown and turn off power.
rundll32.exe shell32.dll,SHExitWindowsEx 4 -> force a shutdown
rundll32.exe shell32.dll,SHExitWindowsEx 0 -> Log Off only.

note those command are for winMe and 98 users.
cheers.
__________________
\"you cant hold a good techie down\"
petogaz is offline  
Old 03-04-2004, 06:54 AM   #6 (permalink)
Ultra Techie
 
Join Date: Dec 2003
Posts: 590
Send a message via AIM to Shrapnill
Default

I learned somethin cool awhile back.

Did you know you can create shutdown and restart icons on your desktop?

Right click desktop -> create new -> shortcut -> browse for file C:/WINDOWS/system32/shutdown.exe -> create the shortcut

Then open the properties and in the "Target" box add -s to make it a shudown icon, add -r for restart and you can also make them timed bu adding -t XX (where XX is the number of seconds til shutdown).

Very handy.
__________________
System specs? Lets just get down to it people:

My penis is bigger than yours.
Shrapnill is offline  
Old 03-04-2004, 07:30 AM   #7 (permalink)
Banned
 
Join Date: Jan 2004
Posts: 509
Send a message via AIM to yashar
Default

hey, sharnill. thats reallly kewl. i love doing stuff like this kuhz then i feel like a secret agent, typing in all these secret codes.
yashar is offline  
Old 03-04-2004, 08:20 AM   #8 (permalink)
Ultra Techie
 
Join Date: Dec 2003
Posts: 590
Send a message via AIM to Shrapnill
Default

Most secret agents can spell.
__________________
System specs? Lets just get down to it people:

My penis is bigger than yours.
Shrapnill is offline  
Old 03-04-2004, 12:14 PM   #9 (permalink)
Him
Wizard Techie
 
Join Date: Jan 2004
Posts: 3,190
Send a message via AIM to Him Send a message via Yahoo to Him
Default

Just learn the command line, well, commands. They wil tell you all.
Him is offline  
Old 03-04-2004, 12:37 PM   #10 (permalink)
True Techie
 
Join Date: Jan 2004
Posts: 164
Default

you can also create shotcuts on your desktop with commands line that chog and i have provided.
__________________

__________________
\"you cant hold a good techie down\"
petogaz is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.