-1

NOTE: This it not a duplicate of Run a batch file in a completely hidden way, the solutions there do not work for this problem.


On Windows 11 there are several GUI (not batch) programs (for example, the jzIntv emulator) that I use which open a second console window in the background, in addition to the main GUI window. Is there some method or utility I can use that will enable running and showing the GUI, but hiding the console window?

Note that this is specifically about GUI executables that I run which, in turn, open a secondary console. I want to run the GUI and have it remain visible, while the console that the GUI opens (which I have no direct control over) to be hidden.

I am not trying to run/hide a batch file.

Example screenshot of both windows

2 Answers2

1
  1. Make a .bat file to run the app.
  2. Make a shortcut to the .bat file.
  3. Open the shortcut the Properties.
  4. Set Run to Minimized.

Now, when you click the shortcut, or call it through the the keyboard, the CMD prompt will be hidden, but the app it's running should show normally.

1

This approach is working for me, using NirCmd, specifically with the execmd subcommand:

nircmd execmd ./path/to/program.exe <param1> <param2>

When the exe fires up a second console window, the console now remains hidden while the GUI window appears as desired.