»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 12-02-2003, 10:22 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 6,533
John Prophet is on a distinguished road
XP single click shutdown?

Saw this here http://members.aol.com/axcel216/

Haven't tried it yet...anyone tried it?






Did you know that in Windows XP you can shut down your computer from the (eventually DOS prompt) command line box? Moreover, you can do this by clicking your mouse only once.
All you need to do is... right-click on an empty Desktop spot -> select New -> Shortcut -> type shutdown followed by a space, and then enter one or more of the parameters listed below -> click Next -> type a suggestive name for your new shortcut -> finally, click Finish.
This is the Shutdown.exe (located in %systemroot%\System32, usually C:\Windows\System32) syntax:

shutdown [-i|-l|-s|-r|-a] [-f] [-m \\computername] [-t xx] [-c "Text"] [-d[u][p]:xx:yy]
Valid command line switches:


-a = Abort system shutdown in progress ONLY IF the -t xx timeout option was already set to ANY value other than 0. ALL switches except -l and -m are ignored during abort.
-c "Text" = Text comment (case insensitive) to be displayed in the Message area of the System Shutdown window. MUST be enclosed between quotes. Maximum allowed 127 ASCII characters.

-d [u][p]:xx:yy = Reason code for shutdown:

u = User code.
p = Planned shutdown code.
xx = Major reason code. Positive integer number less than 256.
yy = Minor reason code. Positive integer number less than 65536.
-f = Force running applications to close without warning.

-i = Display the shutdown interface (GUI). MUST be the first option!

-l = Log off the current user of the local computer (default action). CanNOT be used with the -m option unless the current user has Administrator rights, in which case the -m switch takes precedence.

-m \\computername = Remote/network computer name (most always case sensitive) to log off/restart/shut down. Current user MUST have Administrator rights to be allowed to use this switch!

-s = Shut down the local computer.

-r = Shut down and restart (reboot) the local computer.

-t xx = Set shutdown timer to timeout for xx seconds. IF NOT specified defaults to 20 seconds. Allowed values between 0 and 99 seconds. The -a switch is the ONLY one that CAN be used during the timeout period.

NOTES:

The dash (-) in front of these switches can be replaced by a forward slash (/).
Spaces are NOT required to separate the shutdown command from ANY following switches, but ARE required to separate ANY switch from its following parameter(s), if any.
For example:

shutdown -s -c "Shutting down!" -t 3

tells your computer to shutdown after waiting for 3 seconds while the System Shutdown window will display text above in the Message area.

Optional: after you're done creating your customized shortcut for shutdown -> right-click on it -> select Properties -> enter your desired key "combo" in the Shortcut Key box (e.g. Ctrl + Alt + End) -> click OK/Apply.
From now on just left-click on your shutdown shortcut or hit that key combination to turn off/restart/log off your computer.

FYI: Windows NT4/2000 owners can use this similar 3rd party ShutDown command line tool [40 KB, freeware].

__________________
"Even a fool is thought to be wise if he is silent"
John Prophet is offline   Reply With Quote
Old 12-03-2003, 09:14 AM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Lake Helen, FL
Posts: 3,492
TOAD6147 is on a distinguished road
Send a message via ICQ to TOAD6147 Send a message via AIM to TOAD6147
So this doesn't work for Win9X?
Quote:
...this similar 3rd party ShutDown command line tool [40 KB, freeware]
Which tool?
TOAD6147 is offline   Reply With Quote
Old 12-03-2003, 02:46 PM   #3 (permalink)
Registered User
 
darrelld's Avatar
 
Join Date: Oct 2001
Location: Oregon
Posts: 1,150
darrelld is on a distinguished road
Or you can push the power button on the case.
__________________
Will work for food!
darrelld is offline   Reply With Quote
Old 12-03-2003, 02:50 PM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 6,533
John Prophet is on a distinguished road
If the one click thing works good though, you could probably hit it with a batch file....uhh, yummy.

Or use PTFB to do it.

Toad I dont know about the tool in question etc..I havent even read it all yet, just posted it up for consumption...to see what everyone thinks.
__________________
"Even a fool is thought to be wise if he is silent"
John Prophet is offline   Reply With Quote
Old 12-04-2003, 05:45 PM   #5 (permalink)
Registered User
 
RayH's Avatar
 
Join Date: Oct 2001
Location: San Francisco, CA
Posts: 480
RayH is on a distinguished road
darrelld That's what I do! Note all that complicated stuff was found on AOL! AOL can complicate a wet dream!
__________________
RayH424@Hotmail.com
Please indicate you are from TechIMO in subject line so you don't get deleted as spam :)
RayH is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:11 AM.