Skip to content

mike-clark-8192/noconsole-win

Repository files navigation

noconsole-win

Launch console programs without displaying console windows (on Windows). This is done by calling win32's CreateProcess function with the CREATE_NO_WINDOW flag.

noconsolec

Usage: noconsolec.exe <commandline>

Executes:

%windir%\system32\cmd.exe /c <commandline>

noconsolew

Usage: noconsolew.exe <commandline>

Executes:

<commandline>

Common behavior

  • Uses win32's MessageBox() to display detected errors.
  • Retrieves <commandline> via GetCommandLineW() to minimize commandline quoting/escaping quirks.