How to minimize a running program using a command line?
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.
41 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.