shutdown or restart by commands?

Status
Not open for further replies.

Storm

Solid State Member
Messages
7
How can I shutdown or restart my Windows by commands? Thanks for your helps!
 
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.
 
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.
 
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.
 
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.
 
Just learn the command line, well, commands. They wil tell you all.
 
you can also create shotcuts on your desktop with commands line that chog and i have provided. ;)
 
Status
Not open for further replies.
Back
Top Bottom