Question

what parameters should i use to start a console app minimized or hidden?

is this possible without using a 3rd party program?

with a batch file

Was it helpful?

Solution

start /min c:\windows\cmd.exe

Then you can pass whatever parameters to cmd.exe you need, for example:

To process a command then close:

start /min c:\windows\cmd.exe /c dir

To process a command but stay open:

start /min c:\windows\cmd.exe /k dir
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top