Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to output a list of window titles in a console window?

Is there a way to output a list of running window titles to the command window?

I know that it's possible to filter based on window title using tasklist /FI. But is it possible to display a column of all window titles?

TaskList will provide the image name, but I'm looking for the name as it appears in the task manager under the applications tab.

like image 274
user3801937 Avatar asked Aug 12 '14 19:08

user3801937


2 Answers

Do you mean something like this?

for /f "tokens=3,*" %a in ('tasklist /fo list /v ^| find "Window Title"') do @if not "%a"=="N/A" echo %a %b
like image 178
Ir Relevant Avatar answered Oct 22 '22 04:10

Ir Relevant


Create a batch called Windows-Open.cmd
and put the follwing command inside:

TASKLIST /v /fo list |find /i "window title" |find /v "N/A"

There are a few refinements we can yet do... but for me its enough,,, simple,,, lean &% mean...

  • you can easy derive from there, for example: Windows-noTitle.cmd etc. etc.

Stay good...

like image 6
ZEE Avatar answered Oct 22 '22 02:10

ZEE