Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to minimize a running program using a command line?

Writer Sebastian Wright

Please note that I am familiar with the command line that is supposed to OPEN and run a program minimized, however that just doesn't work with some third-party programs. So I thought I could use a batch file with two command lines - one to open the program and the other to minimize it. I wonder if that would work.

4

1 Answer

This can be done with NirCmd. From NirCmd's help file, the command to minimize windows or running programs is:

nircmd win min [find] [window to find] [Additional Parameters]

For example, to minimize all open notepad.exe windows:

nircmd win min process "notepad.exe"

See NirCmd's help file for more info on how to specify which windows or running programs you want minimized.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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