How to make REBOOT & SHUTDOWN shortcuts?

Discussion in 'Software' started by cthompson, Oct 18, 2004.

  1. cthompson

    cthompson Private E-2

    Ok, first off, I don't mean regular shorcuts. I mean the shortcuts that you can make that way you can simply click it and it reboots or shuts down your computer. I know it can be done, but my problem is, I forgot how to do it. Can anyone please tell me how i make a Reboot and Shut Down shortcut?
     
  2. iamien

    iamien Cptn "Eh!"

    what os, dos commands/shell commands.
    in NT look into shutdown.exe
     
  3. QuickSilver

    QuickSilver Corporal

    Looks liek a step in the right direction:

    http://www.robvanderwoude.com/index.html

    Covers most versions of Windows, even 3.1 and DOS... and looks to cover OS/2 as well as others... what more do you need? ;)
     
  4. celebration.of.being

    celebration.of.being Private First Class

    see if u are using win 98 then ...
    for shutting down the windows make a shortcut and giv the path as...

    c:\windows\rundll.exe user.exe,exitwindowsexec

    for restarting ,giv the path as

    c:\windows\rundll.exe user.exe,exitwindows

    (see perhaps the the path i have told u for restarting may be for shutting down and vice versa..u know i cant try them now...anyways..do that urself)
    happy computing!!
     
  5. MechGeek

    MechGeek Private First Class

    I use shutdown exe as iamien and quicksilver mentioned. I made two batch files one called shutdown and the other called restart.
    shutdown.bat has the following line:
    restart.bat has the following line:
    You can see all the switches if you open a command window and type
     
  6. Athron64

    Athron64 Private E-2

    you could make a exe ...

    c++

    system("C:\\WINDOWS\\system32\\shutdown.exe -s ");
     
  7. QuickSilver

    QuickSilver Corporal

    yea although if automation is preferred and you aren't bothered about offering a great deal of additional automation other than the shutdown/reboot then I would probably go for a more lightweight batch file.... easier to knock together too...
     
  8. iamien

    iamien Cptn "Eh!"

    Why dont you just hit shutdown :p
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds