Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get a list of all open windows from the command line

Tags:

In Windows 7, is it possible to obtain a list of all open desktop windows from the command line? I know that it's possible to obtain a list of all running processes from the command line, but I want to know if it's possible to obtain a list of open windows as well.

like image 669
Anderson Green Avatar asked Mar 19 '13 04:03

Anderson Green


People also ask

How do I see all open Windows?

The Task view feature is similar to Flip, but it works a bit differently. To open Task view, click the Task view button near the bottom-left corner of the taskbar. Alternative, you can press Windows key+Tab on your keyboard. All of your open windows will appear, and you can click to choose any window you want.

How do I get a list from the command-line in Windows?

Type dir /A:D. /B > FolderList. txt and press Enter to generate a top-level folder list. When the list is complete, a new, blank prompt with a flashing cursor will appear.

What does tasklist command do?

Tasklist is a tool that displays a list of the processes that are running on either a local or remote machine.


2 Answers

The "/v" option lists the window names in the last column. As in "tasklist /v". You can also pipe it into another application or find to do filtering.

like image 190
Mike Newell Avatar answered Oct 13 '22 12:10

Mike Newell


Use

tasklist /fi "windowtitle eq <Title of window*>" 

For example:

tasklist /fi "windowtitle eq Notepad*" 
like image 33
user3611868 Avatar answered Oct 13 '22 13:10

user3611868