I'm trying to run cmd in min mode, like cmd /k start notepad && exit.

I tried c:\windows\system32\cmd.exe /k start /min notepad && exit.

But it opens the cmd and then opens notepad. What can I do to minimize cmd automatically?

  • 1
    Are you running this from a batch file?
    – CharlieRB
    Dec 5 '11 at 14:35

If you dont want the command prompt to linger at all you can use

cmd /c start notepad

If you want to keep it a command prompt minimized under notepad you can use

cmd /c start /min cmd /k notepad

You could try Hidden Start, seems to be free for personal use.

  • This is an ancient post, but please consider expanding the answer. Just pointing to a product isn't considered an answer by current standards because it doesn't indicate anything about why it's a good solution or how to accomplish the solution. Good guidance on recommending software here. Thanks.
    – fixer1234
    Jan 17 '16 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.