How to Minimize a Running Program Using a Command Line?

How to Minimize a Running Program Using a Command Line?

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

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

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.