Solved Create a shortcut to the real shutdown dialog box

MichaelHein

New Member
Messages
3
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Homebuild
    CPU
    Intel I7-3770K
    Motherboard
    Asus P8Z77-V Deluxe
    Memory
    16 GB
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 Computer

System One

  • OS
    Linux Centos 7, W8.1, W7, W2K3 Server W10
    Computer type
    PC/Desktop
    Monitor(s) Displays
    1 X LG 40 inch TV
    Hard Drives
    SSD's * 3 (Samsung 840 series) 250 GB
    2 X 3 TB sata
    5 X 1 TB sata
    Internet Speed
    0.12 GB/s (120Mb/s)
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
Jimbo said:
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 Computer

System One

  • OS
    w9x

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
Thanks Guys

Thanks for the information, MichaelHein, Fredledingue & Brink. :)
 

My Computer

System One

  • OS
    Windows 7 Ultimate SP1 (64 bit), Linux Mint 18.3 MATE (64 bit)
    Computer type
    PC/Desktop
    System Manufacturer/Model
    n/a
    CPU
    AMD Phenom II x6 1055T, 2.8 GHz
    Motherboard
    ASRock 880GMH-LE/USB3
    Memory
    8GB DDR3 1333 G-Skill Ares F3-1333C9D-8GAO (4GB x 2)
    Graphics Card(s)
    ATI Radeon HD6450
    Sound Card
    Realtek?
    Monitor(s) Displays
    Samsung S23B350
    Screen Resolution
    1920x1080
    Hard Drives
    Western Digital 1.5 TB (SATA), Western Digital 2 TB (SATA), Western Digital 3 TB (SATA)
    Case
    Tower
    Mouse
    Wired Optical
    Other Info
    Linux Mint 16 MATE (64 bit) replaced with Linux Mint 17 MATE (64 bit) - 2014-05-17
    Linux Mint 14 MATE (64 bit) replaced with Linux Mint 16 MATE (64 bit) - 2013-11-13
    Ubuntu 10.04 (64 bit) replaced with Linux Mint 14 MATE (64 bit) - 2013-01-14
    RAM & Graphics Card Upgraded - 2013-01-13
    Monitor Upgraded - 2012-04-20
    System Upgraded - 2011-05-21, 2010-07-14
    HDD Upgraded - 2010-08-11, 2011-08-24,
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 Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
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 Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
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 Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Homebuild
    CPU
    Intel I7-3770K
    Motherboard
    Asus P8Z77-V Deluxe
    Memory
    16 GB
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 Computer

System One

  • OS
    Windows 10 Education 64 Bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Asus
    CPU
    AMD Phenom II X4 980 Black Edition Deneb 3.7GHz
    Motherboard
    ASUS M4N68T-M V2 µATX Motherboard
    Memory
    8GB 4GBx2 Kingston PC10600 DDR3 1333 Memory
    Graphics Card(s)
    NVIDIA Geforce GT640 2 Gig DDR3 PCIe
    Sound Card
    VIA VT1708s High Definition Audio 8-channel Onboard
    Monitor(s) Displays
    22" LG E2242 1080p and 2 19" I-INC AG191D
    Screen Resolution
    1280x1024 - 1920x1080 - 1280x1024
    Hard Drives
    Crucial MX100 256 GB SSD and 500 GB WD Blue SATA
    PSU
    Thermaltake TR 620
    Case
    Power Up Black ATX Mid-Tower Case
    Cooling
    Stock heatsink fan
    Keyboard
    Logitech Wireless K350 Wave
    Mouse
    Logitech M570 Trackball and T650 TouchPad
    Internet Speed
    80 Mbps Down 30 Mbps Up
    Browser
    Internet Explorer 11
    Antivirus
    Windows Defender
    Other Info
    HP DVD1040e Lightscribe - External USB2
WIN+R people, WIN+R
 

My Computer

System One

  • OS
    Windows Server 2012 Standard w/Hyper-V
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP ProBook 4430s
    CPU
    Intel Core i3-2310M
    Memory
    16GB DDR3
    Hard Drives
    80GB Intel 320 SSD
    500GB Samsung Momentus
Win+R is a keyboard shortcut. Not a desktop shortcut you can click with a mouse. What if some poeple want something visible to click on? Or if they have finger disabilities which rpevent them to use a keyboard (but not a mouse)?
 

My Computer

System One

  • OS
    w9x
What is the big deal about shutting down or restarting your computer? When was the last time you restarted your phone "just because"? If the system is stable, then there is no need. IPads do not need shutting down. They go to sleep.
The keyboard shortcut to the power button is windows+i, not +r. The touch method is to bring up the charms bar on the right side, then click the power button. Simple.
 

My Computer

System One

  • OS
    Win7 Ultimate and trial Win8
    System Manufacturer/Model
    Gateway T7R Win8 trial system
    CPU
    Intel 2.4 Ghz Duo
    Memory
    4GB
    Graphics Card(s)
    system
Or a tablet with no keyboard. Don't take that the wrong way, keyboard shortcuts are nice I use them all the time. Its just that the way things are going with all these "smart" devices, you may not have a physical keyboard. in that case I'll take a tile or Icon I can click any day.
 

My Computer

System One

  • OS
    Windows 10 Education 64 Bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Asus
    CPU
    AMD Phenom II X4 980 Black Edition Deneb 3.7GHz
    Motherboard
    ASUS M4N68T-M V2 µATX Motherboard
    Memory
    8GB 4GBx2 Kingston PC10600 DDR3 1333 Memory
    Graphics Card(s)
    NVIDIA Geforce GT640 2 Gig DDR3 PCIe
    Sound Card
    VIA VT1708s High Definition Audio 8-channel Onboard
    Monitor(s) Displays
    22" LG E2242 1080p and 2 19" I-INC AG191D
    Screen Resolution
    1280x1024 - 1920x1080 - 1280x1024
    Hard Drives
    Crucial MX100 256 GB SSD and 500 GB WD Blue SATA
    PSU
    Thermaltake TR 620
    Case
    Power Up Black ATX Mid-Tower Case
    Cooling
    Stock heatsink fan
    Keyboard
    Logitech Wireless K350 Wave
    Mouse
    Logitech M570 Trackball and T650 TouchPad
    Internet Speed
    80 Mbps Down 30 Mbps Up
    Browser
    Internet Explorer 11
    Antivirus
    Windows Defender
    Other Info
    HP DVD1040e Lightscribe - External USB2
Win+R is a keyboard shortcut. Not a desktop shortcut you can click with a mouse. What if some poeple want something visible to click on? Or if they have finger disabilities which rpevent them to use a keyboard (but not a mouse)?

I'm just pointing out that this is a fairly quick way to shutdown or reboot your PC.

The keyboard shortcut to the power button is windows+i, not +r. The touch method is to bring up the charms bar on the right side, then click the power button. Simple.

I know what WIN+I and WIN+R do. Please see my comments above. WIN+R -> shutdown /s /t 0 or shutdown /r /t 0 is quicker than going to the power button via the settings charm.
 

My Computer

System One

  • OS
    Windows Server 2012 Standard w/Hyper-V
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP ProBook 4430s
    CPU
    Intel Core i3-2310M
    Memory
    16GB DDR3
    Hard Drives
    80GB Intel 320 SSD
    500GB Samsung Momentus
Win+R is a keyboard shortcut. Not a desktop shortcut you can click with a mouse. What if some poeple want something visible to click on? Or if they have finger disabilities which rpevent them to use a keyboard (but not a mouse)?

I'm just pointing out that this is a fairly quick way to shutdown or reboot your PC.

The keyboard shortcut to the power button is windows+i, not +r. The touch method is to bring up the charms bar on the right side, then click the power button. Simple.

I know what WIN+I and WIN+R do. Please see my comments above. WIN+R -> shutdown /s /t 0 or shutdown /r /t 0 is quicker than going to the power button via the settings charm.

Just pointing this out, win+r on my laptop brings up the run dialog box, not a shutdown prompt. The charms bar seems like it would be simpler to swipe to open, then touch the power button. (of course I am not challenged in the way you speak of, so I have no real way of testing other methods)

But my question remains, why is so imperative to shutdown?
 

My Computer

System One

  • OS
    Win7 Ultimate and trial Win8
    System Manufacturer/Model
    Gateway T7R Win8 trial system
    CPU
    Intel 2.4 Ghz Duo
    Memory
    4GB
    Graphics Card(s)
    system
Some people, like me, turn their PC off when they are not using it.
 

My Computer

System One

  • OS
    Windows 10 Education 64 Bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Asus
    CPU
    AMD Phenom II X4 980 Black Edition Deneb 3.7GHz
    Motherboard
    ASUS M4N68T-M V2 µATX Motherboard
    Memory
    8GB 4GBx2 Kingston PC10600 DDR3 1333 Memory
    Graphics Card(s)
    NVIDIA Geforce GT640 2 Gig DDR3 PCIe
    Sound Card
    VIA VT1708s High Definition Audio 8-channel Onboard
    Monitor(s) Displays
    22" LG E2242 1080p and 2 19" I-INC AG191D
    Screen Resolution
    1280x1024 - 1920x1080 - 1280x1024
    Hard Drives
    Crucial MX100 256 GB SSD and 500 GB WD Blue SATA
    PSU
    Thermaltake TR 620
    Case
    Power Up Black ATX Mid-Tower Case
    Cooling
    Stock heatsink fan
    Keyboard
    Logitech Wireless K350 Wave
    Mouse
    Logitech M570 Trackball and T650 TouchPad
    Internet Speed
    80 Mbps Down 30 Mbps Up
    Browser
    Internet Explorer 11
    Antivirus
    Windows Defender
    Other Info
    HP DVD1040e Lightscribe - External USB2
Just pointing this out, win+r on my laptop brings up the run dialog box, not a shutdown prompt. The charms bar seems like it would be simpler to swipe to open, then touch the power button. (of course I am not challenged in the way you speak of, so I have no real way of testing other methods)

The run dialogue is a powerful tool. For most tasks, provided you know the command, it's faster than launching it from a menu. For example, WIN+R -> ncpa.cpl will bring up your network connections. Much quicker than going into the control panel. The same for shutdowns, reboots, getting to the command prompt, etc.

But my question remains, why is so imperative to shutdown?

That's a pretty good question. I generally only shutdown when my laptop isn't going to be used for quite some time (I don't think my wife ever actually shuts hers off).
 

My Computer

System One

  • OS
    Windows Server 2012 Standard w/Hyper-V
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP ProBook 4430s
    CPU
    Intel Core i3-2310M
    Memory
    16GB DDR3
    Hard Drives
    80GB Intel 320 SSD
    500GB Samsung Momentus
Gentlemen, I agree that the run cmd is a powerful tool, for those that know how to use it. The IT pros and powerusers. The average consumer does not understand the run cmd (that they will admit). The run dialog does not need to be suggested to the average user, the swipes need to be demonstrated instead. My reasoning for this is because they will think, " what else can this do, google search, and could brick their machine because of an errant keystroke. I am referring to the average consumer.

I am not trying to argue against anyone's point because they are extremely valid. I am looking at it from a user's POV. (especially my wife ..... sigh)
 

My Computer

System One

  • OS
    Win7 Ultimate and trial Win8
    System Manufacturer/Model
    Gateway T7R Win8 trial system
    CPU
    Intel 2.4 Ghz Duo
    Memory
    4GB
    Graphics Card(s)
    system
The easiest way to shutdown your PC is to press the power button, just like on a phone or tablet. simple, one press, boom.. it's done.

The only argument people have against this is some people say they can't easily access their power button, to which my reply is.. then how do you turn it back on?
 

My Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
I'm a bit confused about this thread - and people in here..

I posted a way to get a normal shutdown menu, like the one known from earlier - because i like to use it, and wanted to share with people who might want something similar.

This pointless debat, over other ways that have been known for ages, 3. party apps that change the system, to bring functions - and even a why i want to shut down my pc, when you dont have to shut down a phone or a tablet.. come on now!

Can't ppl just accept that there are different types of users, different needs - and then just contribute if you actually bring something new - and not just lame comments and useless opinions about why everyone is doing everything wrong.
 

My Computer

System One

  • OS
    Windows 8
    System Manufacturer/Model
    Homebuild
    CPU
    Intel I7-3770K
    Motherboard
    Asus P8Z77-V Deluxe
    Memory
    16 GB
Back
Top