Windows 8 and 8.1 Forums


Create a shortcut to the real shutdown dialog box

  1. #1


    Posts : 3
    Windows 8

    Create a shortcut to the real shutdown dialog box


    Hi,

    Desperate to avoid using the many quite difficult shutdown options in W8, i tried an old trick i used to do on computers i wanted to shutdown from remote desktop. This Works like a charm i W8 too..

    1. Create a file using notepad called something like: Shutdown.js
    2. Put this in the file: (new ActiveXObject("Shell.Application")).ShutdownWindows();
    3. Save the file somewhere you like..
    4. Now you can put shortcuts where you want them - and change icons to the nifty shutdown one in system32

    This shortcut will bring up the shutdown dialog box, with all functions instead of just closing Windows directly.

    Hope this is usefull to others!

      My System SpecsSystem Spec

  2. #2


    Hafnarfjörđur IS
    Posts : 4,376
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Hi there
    just wondering if this trick could be used for starting the desktop application immediately after boot.

    I'm sure a guru out there will figure a way to run a CMD / some type of script after boot has completed -- there must be a way to do it as I remember when for example if a disk needed file system checking say "C" the job would start automatically after the next boot.

    So presumably all we'd need to do is find out what the name of the desktop application is.

    Cheers
    jimbo
      My System SpecsSystem Spec

  3. #3


    You can also use .vbs (easier to code than javascript) Open Notepad (or Notepad++) and copy paste the following. Save it as shtdown.vbs (or any name of your choice)
    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "shutdown -r -t 5", 1, False
    Here are the parameters availables (in XP and Vista)
    Code:
    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       -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)
    I wonder if this code would still work on W8. It's supposed to launch a shut down dialog.
    Code:
    CreateObject("Shell.Application").ShutdownWindows
    Quote Originally Posted by Jimbo
    just wondering if this trick could be used for starting the desktop application immediately after boot. I'm sure a guru out there will figure a way to run a CMD / some type of script after boot has completed -- there must be a way to do it as I remember when for example if a disk needed file system checking say "C" the job would start automatically after the next boot. So presumably all we'd need to do is find out what the name of the desktop application is.
    Starting a Desktop-only application (in fatc any normal Windows software, eg Notepad) should open the Desktop automaticaly. (at default of find the right Desktop app, which may not exist as a launchable application other than from Metro) The problem is that you would have this app open everytime.... Maybe launching wait.exe (a program that does just nothing) could perhaps open the desktop too without opening any useless window. As soon as I can iinstall W8 (perhaps this week) I'll do these kind of tests. But I never did launch scripts so far.
      My System SpecsSystem Spec

  4. #4


    Posts : 22,582
    64-bit Windows 10


    If you like, you could also use this option.

    Power - Add Cascading Desktop Context Menu in Windows 8
      My System SpecsSystem Spec

  5. #5


    Adelaide
    Posts : 1,338
    Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.1 MATE (64 bit)

    Thanks Guys


    Thanks for the information, MichaelHein, Fredledingue & Brink.
      My System SpecsSystem Spec

  6. #6


    Posts : 1,925
    Windows 8.1 Pro


    You could also just have a batch file that calls the shutdown command. Then create an icon to it wherever you want it.

    I fail to understand why you're so "desperate" to not simply press the power button on your computer, or ctrl-alt-del and access the power menu at the bottom right.

    It amazes me when people work themselves up into a tizzy and become "desperate" about something so silly.
      My System SpecsSystem Spec

  7. #7


    Posts : 22,582
    64-bit Windows 10


    Quote Originally Posted by Mystere View Post
    I fail to understand why you're so "desperate" to not simply press the power button on your computer, or ctrl-alt-del and access the power menu at the bottom right.

    It amazes me when people work themselves up into a tizzy and become "desperate" about something so silly.
    Because of to each their own.
      My System SpecsSystem Spec

  8. #8


    Posts : 3
    Windows 8


    Personally i dislike using the shutdown -r thing, since I just want the normal options of restarting og shutting down - and then let Windows close things down fairly nice if need be. My computer is placed a quite bit away from me, so using the powerbutton is not an easy option.

    So my post was just to present an option i like personally - which is the normal Windows function without any 3. party hacks.
      My System SpecsSystem Spec

  9. #9


    Sydney, Nova Scotia, Canada
    Posts : 6,490
    Windows 10 Education 64 Bit


    I added a power button to the blank panel in the empty bay in the top of my case. I have back, neck, and shoulder problems so bending over to turn it on is literally a pain in the neck. Now all I have to do is lean forward a little. I also put a shortcut "C:\Windows\System32\shutdown.exe /s /t 00" on my desktop so its one click to shutdown. I have one for reboot too. Its always nice to have options that are convenient for "you". Everybody has there own way of doing things, it doesn't make them good or bad, just different.
      My System SpecsSystem Spec

  10. #10


    Posts : 354
    Windows Server 2012 Standard w/Hyper-V


    WIN+R people, WIN+R
      My System SpecsSystem Spec

Page 1 of 3 123 LastLast
Create a shortcut to the real shutdown dialog box
Related Threads
I created a shortcut of shutdown.exe and placed it on the desktop. It doesn't work. Is there another way to do this?
Am "using new HP laptop 2000-2d27dx Windows 8.1. Only way I shutdown or restart is going to "charms" panel - Settings - then click Power off icon and choose Sleep, Shutdown or Restart. Is there a way to put a SHORTCUT for Shutdown and Restart on the desktop and/or the Start screen?
Cant Create Users... need help real bad... in User Accounts and Family Safety
Im running windows 8, and i have encountered a problem that i can seem to fix. my problem is that i cant get any other user i create in windows to display in the user select screen. in control pannel in the user options it shows that i have created multiple users, but for some reason i can...
How can I create a simple shortcut to a WEB page? Pretty easy in Win 7. Copy the URL, right click desktop, select new, shortcut, etc... but where is that EASE of use in Win 8? Thanks
How to Create a "Run" Command Dialog Box Shortcut in Windows 8 This tutorial will show how to create or download a Run shortcut that opens directly to the Run command dialog box on your desktop in Windows 8. The default keyboard shortcut to open the "Run" command dialog box is: Windows + R ...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook