Windows 10: autoclose cmd after execution

  1.    17 Jun 2018 #1

    autoclose cmd after execution

    i need to autoclose cmd, after execution.
    I changed dword 32 value in regedit under HKEY_CLASSES_ROOT\batfile\shell\open\command
    to: "cmd.exe /k "%1" %*"
    Now it won't autoclose, i needed it to see error message and now i can't google default value.
    Thanks for help.
      My ComputerSystem Spec

  2. essenbe's Avatar
    Posts : 11,355
    Windows 10 Pro and Windows 10 Pro Insider
       17 Jun 2018 #2

    The default value on my computer is "%1" %*

    To autoclose the cmd prompt have you tried appending the command with &exit on the end? For instance
    dism /online /cleanup-image /restorehealth&exit
      My ComputersSystem Spec

  3.    19 Jun 2018 #3

    &exit does nothing
      My ComputerSystem Spec


Related Threads
Apps & Features Manage App Execution Aliases in Windows 10 in Tutorials
How to Manage App Execution Aliases in Windows 10 Starting with Windows 10 build 17063, you can now manage app execution aliases for Microsoft Store apps. Apps can declare a name (alias) used to run the app like an executable file from a...
Hello, before the update, when i plugged my WD Passport hard drive, it would ask me if i want to launch the autorun (which is the app to unlock drive encryption); then would open the unlocked drive in exporer. After the update, it doesn't ask me...
I have a problem controlling my mouse when selecting an item. I know I can slow it down by using settings. This makes it slow all the time. I'm looking for a way to breeze up to an item then select at a slower speed. This slower speed would give...
Did not experience this problem until this build (10130) but it may have occurred in the build before that also. As you can see in the attachment, I am in Administrator mode but cannot run a script which installs a dozen or so programs. The programs...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:37.
Find Us