Windows 8 and 8.1 Forums


Open shutdown dialog box from command prompt?

  1. #1


    Posts : 2
    Win8

    Open shutdown dialog box from command prompt?


    I know I can open a shutdown dialog box with a shortcut to something like "(new ActiveXObject(“Shell.Application”)).ShutdownWindows();", but how do I do this from a command prompt?

    What single command can I type at a DOS prompt to open a windows shutdown dialog box without needing any external files such as a shortcut.lnk? Anyone know?

      My System SpecsSystem Spec

  2. #2


    Posts : 115
    Windows 10 Pro + 8.1 pro and 7 Utimate


    The only way I have found to open a shutdown dialog box is to use the command
    Code:
    shutdown /i
    But it does not look the way you would expect

    Click image for larger version

    Also another way to open a shutdown dialog box is use
    Code:
    Alt + F4
    And again this does not look the way you would expect

    Click image for larger version

    Note: to use Alt + F4 and bring up the shutdown box you have to have focus on the desktop otherwise you will more than likely close the program that has focus
    Last edited by sml156; 01 May 2016 at 22:07.
      My System SpecsSystem Spec

  3. #3


    Posts : 2
    Win8


    ya, I'm trying to bring up the second dialog from C# actually. or the command line, both will work.
      My System SpecsSystem Spec

  4. #4


    Posts : 5
    windows 8


    You may create a shortcut icon on desktop.
    Shutdown: C:\windows\system32\shutdown.exe /s /t 0
    restart: C:\windows\system32\shutdown.exe /r /t 0
      My System SpecsSystem Spec

Open shutdown dialog box from command prompt?
Related Threads
I need to be able to open PDF files from Win 8 32 bit DOS Command Line to complete a DOS macro for a document management database I've used for 20+ years. On XP Systems I simply have macro grab file name from database and type >Start "Path\filename.pdf" Does Windows 8.1 have a similar...
lam using windows 8. At first when l was opening command prompt it was using C:\Users\Software Developer> (Software Developer is my computer name) and l could easily access my desktop usingC:\Users\Software Developer>cd.. desktop l dont know what happened, now the command prompt by default is on...
How to Open an Elevated Command Prompt in Windows 8 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial...
no log in password to use for 'command prompt' in User Accounts and Family Safety
all of a sudden my HP 9200 notebook w/windows 8 went into an 'automatic repair' that failed.... can't use 'refresh' because I don't have password to use with my log in name..... can't use command prompt for that same reason.....i am a 63yr old 'amateur' pc person..... am communicating now by...
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
How to Open a Command Prompt in Windows 8 and 8.1 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook