Use WMIC to get a process' window title

Viewed 408

I was using WMIC, and I saw this:

wmic process list brief find "spotify.exe"
  • which should find a specific process, and return it's title, but I got an invalid list expression issue.

Anyone know what I could do instead? If preferable I would still like to use WMIC.

1 Answers

You should try like this way with command line :

And add this switch /I means : Case-insensitive search.


wmic process list brief | findstr /I "spotify.exe"
Related