4

I know that you can get window title with:

tasklist /v

or

tasklist /v /fi "WINDOWTITLE eq Untitled - Notepad"

Can I get something like that in wmic? I can't find any information about that.

5
  • 1
    Why do you want to use wmic? I don't think it's possible.
    – DavidPostill
    Commented May 25, 2016 at 15:01
  • Use powershell Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle –AutoSize
    – DavidPostill
    Commented May 25, 2016 at 15:06
  • If possible I don't want to run tasklist just to get window titles when I can get all other information in wmic.
    – JeremyK
    Commented May 25, 2016 at 15:11
  • Like I said, it is not possible.
    – DavidPostill
    Commented May 25, 2016 at 15:20
  • It is possible do this by using some like this answer (bat/+/C#), but not by using wmic, instead, this will generating an executable file and call/use it in your bat... interested?
    – Io-oI
    Commented Apr 19, 2020 at 17:17

0

You must log in to answer this question.

Browse other questions tagged .