1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Icons for shutdown and restart.

Discussion in 'Windows XP' started by JPaterson000, 2006/09/08.

  1. 2006/09/08
    JPaterson000

    JPaterson000 Inactive Thread Starter

    Joined:
    2006/07/02
    Messages:
    81
    Likes Received:
    0
    Can someone tell me the command to put into a shortcut so I can create shutdown and restart shortcuts to place onto my icon bar? I have the taskbar set to autohide, and the icon bar hides the taskbar completely (hitting Win key brings up Start, but no clock, quick launch, etc.)?

    I'd like to put these icons on the bar to compliment "Start" and the remainder.
     
  2. 2006/09/08
    jw25

    jw25 Inactive

    Joined:
    2006/01/03
    Messages:
    23
    Likes Received:
    0
    Right-click on the desktop and choose "New-->Shortcut ". Browse to the file "C:\Windows\System32\Shutdown.exe ", then click Next. After this, you have to name the shortcut and click Finish. Now right-click on the new shortcut and choose "Properties ". In the Target box, add the command line switch -l (to log off), -s (to shut down), or -r (to reboot).
     
    jw25,
    #2

  3. to hide this advert.

  4. 2006/09/08
    Bill Castner

    Bill Castner Inactive

    Joined:
    2006/08/30
    Messages:
    1,980
    Likes Received:
    0
    The taskbar has sections. From the left to right:

    Start button
    Quick Launch Area
    Taskbar - showing running tasks
    Pre-notification area: Use by WMP minimized, some Powertoys
    Notfication Tray: includes customizable Notfication icons
    Clock

    Now from the above, tell me where the "Icon bar" might be located?
     
  5. 2006/09/08
    JPaterson000

    JPaterson000 Inactive Thread Starter

    Joined:
    2006/07/02
    Messages:
    81
    Likes Received:
    0
    Thanks for the answer jw25.



    Sorry, Bill Castner, I should've explained. By "icon bar," I meant a downloaded toolbar from Stardock that simulates a Macintosh's lower taskbar on a Windows PC. So, instead of having a desktop cluttered with icons, I have several icons on one bar that zooms in and magnifies on the selected icon, just like all of today's Macs and Mac notebooks. It's part of Stardock's ObjectDock suite.
     
  6. 2006/09/08
    wahlroot

    wahlroot Inactive

    Joined:
    2002/08/15
    Messages:
    546
    Likes Received:
    1
    Right click the Desktop, Chose New, Shortcut. Type shutdown.exe -s -t oo for Shutdown. Click Next. Type a name. Click finish. For Restart, do the same, except type shutdown.exe -r -t 00 You will then need to Right click the Shortcuts and pick Change icon and find one of your liking. Then move them to your Icon Bar. I may not have been clear. Typing begins with shutdown and ends with 00, with space after .exe, and s or r and t. 00 is not the letter oo.
     
    Last edited: 2006/09/08
  7. 2006/09/08
    JPaterson000

    JPaterson000 Inactive Thread Starter

    Joined:
    2006/07/02
    Messages:
    81
    Likes Received:
    0
    I understand the -s and -r switches, but what is -t supposed to do?
     
  8. 2006/09/08
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    It sets the time delay in seconds..

    My shortcuts for Restart and Shutdown are:

    %windir%\System32\shutdown.exe -r -t 05 -f

    and

    %windir%\System32\shutdown.exe -s -t 05

    respectively and as you can see, the time delay is 5 seconds for each.

    BTW, the -f switch is used to force the command.
     
    Last edited: 2006/09/08
  9. 2006/09/08
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    If you would like, you can get the full rundown by typing shutdown /? at the command prompt. You'll see the following:

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

    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
    -d [p]:xx:yy The reason code for the shutdown
    u is the user code
    p is a planned shutdown code
    xx is the major reason code (positive integer less than 256)
    yy is the minor reason code (positive integer less than 65536)
     
  10. 2006/09/09
    JPaterson000

    JPaterson000 Inactive Thread Starter

    Joined:
    2006/07/02
    Messages:
    81
    Likes Received:
    0
    Thanks! Those switches will help a lot. Now I don't have to wait for the thirty seconds for Windows to shut down when I use the shortcut.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.