Use "cmd /c" but hide the console window

kno010 picture kno010 · Aug 7, 2017 · Viewed 23.6k times · Source

I have a shortcut running this command when clicked: cmd /c "full path to my batch file". When I use it, it does what it is supposed to do, but in the process the ugly console window pops up. Is there any way to make this command start a hidden or at least minimized window?

Answer

Stephan picture Stephan · Aug 8, 2017

Use the command start with switch /min to start cmd in minimized window:

start /min cmd /c "full path to my batch file"