Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy shutdown 1

Status
Not open for further replies.

snowsurfer911

Technical User
Dec 4, 2003
4
US
There's away to have a icon and with one press shut down the system, anyone know how?? I forgot how it's done!!!
 
Shutdown:
"shutdown -s -t00" if I remember correctly

Restart:
"shutdown -r -t00"
 
oops, there's a space between the "-t" and the "00"

if you go to the cmd window and type "shutdown /?" it'll give you all the options.
 
What version of Windows?




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
This is for Win9x/Me courtesy of
Right click on an empty space on your desktop.
Select New and Shortcut.

In the Command Line Box type the following to create a Shutdown shortcut:

C:\Windows\Rundll32.exe shell32,SHExitWindowsEx 1

Click on next and replace Rundll with Shutdown

Click on Finish and you will now have a desktop icon named Shutdown.

To create a shortcut to Restart perform the above and in the Command line type:

C:\Windows\Rundll32.exe shell32,SHExitWindowsEx 2

Replace Rundll with Restart and click on Finish

To create a shortcut to LogOff perform the above and in the Command line type:

C:\Windows\Rundll32.exe shell32,SHExitWindowsEx 0

Replace Rundll with LogOff

Best Regards and Wishes,
Mesich and The Count

All tested and works,




Skip
 
This is exactly what I was looking for Skipcox,
thanks a million!!!!
Thanks guys.......gals.....
 
XP
Shutdown -t XX
( xx in seconds )
Shutdown -s
(shutdown immediatly)


C:\>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d
up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
 
Make a batch.file with the command.
Open notepad
Write in your prefered shutdown command
save it at your desktop as e.g shutd.bat
Now drag the icon down to your quick launch bar.
You have shutdown with one click on the quicklaunch bar.
 
Ran over to the neighbors...here's what she uses:

In XP,

Click [New] [Shortcut] to open the Create Shortcut Wizard
Type [shutdown -s -t 00] without the brackets.
Click [Next] and type a descriptive name of your choosing for the shortcut
Click [Finish]

Desktop Reboot Icon
Right click on the desktop
Click [New] [Shortcut] to open the Create Shortcut Wizard
Type [shutdown -r -t 00] without the brackets.
Click [Next] and type a descriptive name of your choosing for the shortcut
Click [Finish]

Only problem is the machine won't shut off, just goes to the blah blah screen.

This little utility works for her though,

(download)

(instructions)

copy the file in the root ("c:\"). run the utility in the command line for options. create a desktop shortcut with the following syntax in the "Target" field:

"c:\shutdown.exe" -l : logoff
"c:\shutdown.exe" -u : shutdown then power off
"c:\shutdown.exe" -r : restart
"c:\shutdown.exe" -h : hibernate

She's an Office Manager and leaves her desk unattended many times a day. Apparently when the boss barks, she doesn't have the time to shut down normally.

hth







Skip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top