shortcut to shut down xp

This is a discussion on shortcut to shut down xp within the Tech Board forums, part of the Community Boards category; i want to add a shortcut to my WIndows XP desktop to shutdown the computer when i double click it ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    38

    shortcut to shut down xp

    i want to add a shortcut to my WIndows XP desktop to shutdown the computer when i double click it .
    what should i write in the "Type the location of the item " text box while making the shortcut
    i guess i'll have to use something like "rundll" from the "system32" folder of "windows" folder

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  3. #3
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    or press the window button icon
    then tap "u" twice and it'll shut down.

    do it try it now. ITS FREE!!

  4. #4
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    Something like:
    RUNDLL32 USER32.DLL,ExitWindowsEx
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    windows key +'U' + 'U'

    faster. easier.
    too bad it's one more keypress... unless you don't have a keyboard, then...

    Start -> Shut Down -> Shut Down
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    The thing I hate about the normal shutdown is that you have to make an attempt to hit the right key. The U is in the middle of the freakin keyboard. For 98, all I had to do was hit the window key and then enter twice.... so much easier.

  7. #7
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by ober
    The thing I hate about the normal shutdown is that you have to make an attempt to hit the right key. The U is in the middle of the freakin keyboard. For 98, all I had to do was hit the window key and then enter twice.... so much easier.

    That is ober lazy

  8. #8
    Registered User
    Join Date
    Mar 2004
    Posts
    38
    what i had asked was not a keyboard shortcut but a desktop shortcut
    anyways i googled around and found the answer
    thanx all

  9. #9
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    please share your answer

  10. #10
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by surdy
    what i had asked was not a keyboard shortcut but a desktop shortcut
    anyways i googled around and found the answer
    thanx all
    I told you about the "start->shutdown->shutdown" thing already... how much shorter do you want to make it?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  11. #11
    Registered User
    Join Date
    Jul 2003
    Posts
    85
    Make a shortcut to the shutdown command.. You can even add a nice little Goodbye message

    Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c
    omment"] [-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
    -d [u][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)

  12. #12
    Registered User
    Join Date
    Mar 2004
    Posts
    38
    Quote Originally Posted by caroundw5h
    please share your answer
    WindowsXP has a program called SHUTDOWN.EXE which allows you to easily create icons to shutdown or restart your computer.

    To create a shutdown shortcut on the desktop:

    Right click on an open area of the desktop
    Select New / Shortcut
    Enter in "shutdown -s -t 00" - no quotes
    Press the Next button
    For the name, enter in anything you like. I just use shutdown. Click on the Finish button.
    For a reboot, enter "shutdown -r -t 00"

    Shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

    Parameters

    -l - Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
    -s - Shuts down the local computer.
    -r - Reboots after shutdown.
    -a - Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
    -f - Forces running applications to close.
    -m [\\ComputerName] - Specifies the computer that you want to shut down.
    -t xx - Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
    -c "message" - Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.

  13. #13
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    or you could have just gone to the cmd line and gotten that informatin with
    Code:
    help shutdown
    . in which case you could write a snippet like so.
    Code:
    #include <stdlib.h>
    //#include <process.h>
    int main(void){
        system("shutdown -parameters")
        return 0;
    }
    kinda fun to play around with the CLI in windows and make silly little miscehvious code.

  14. #14
    Registered User loopy's Avatar
    Join Date
    Mar 2002
    Posts
    172
    'Litestep', shutdown through a popup, plus more!

    www.shellfront.org
    WorkStation(new, a month ago):

    Sony Vaio i686 Desktop
    2.60 GIGhz Intel Pentium 4(HT)
    512Mb DDR RAM
    800MHz Front Side Bus!
    120 GIG IDE HardDrive
    Matrox G400 Dual-Head
    Linux kernel 2.6.3
    Modified Slackware 9.1
    GCC/GDB

    Multi-mon
    Simultaneous Multiple Processes

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 12:31 PM
  2. Trying to Install XP over Vista with SATA HD
    By Shamino in forum Tech Board
    Replies: 2
    Last Post: 12-13-2008, 06:56 PM
  3. Need help with program
    By HAssan in forum C Programming
    Replies: 8
    Last Post: 06-10-2007, 09:05 PM
  4. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  5. Windows XP regression over time
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-17-2002, 10:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21