In Windows if I want to list all instances (and window titles) of a given application from the command line I run this command:
tasklist /fi "IMAGENAME eq notepad.exe" /v
However I can't do the same thing for applications such as LibreOffice. For example no matter how many different Writer windows I may have open, there always is only one soffice.bin
and one soffice.exe
process. Using the tasklist
command I can only see one window title associated with soffice.bin
process.
Same thing happens with Microsoft Word (only one winword.exe
process exists and is associated with only one window title).
Is there any way I can list all the window titles of such applications through the command line?
Best Answer
You can use the following PowerShell script:
I wrote a program that allows filtering this list and brings the selected window to the front: activatewindow