cmd.exe の代わりに Microsoft の PowerShell を使用する場合 (古い Windows XP でも動作します。手動でインストールする必要がありました。新しい Windows バージョンではプリインストールされています)、スナップインとしてWASPをインストールし、次にこれを行います:
Select-Window | Format-Table processid,processname,title -AutoSize
AUSFÜHRLICH: Enumerating all windows
ProcessId ProcessName Title
--------- ----------- -----
7452 powershell Windows PowerShell V2 (CTP3)
2688 chrome cmd - tasklist show all windows - Stack Overflow - Google Chrome
2688 chrome List all open window titles - PowerShellCommunity.org - Windows PowerShell Discussion Forums ...
3572 TOTALCMD Total Commander 8.0 - Scrum-Master.de Inh. Alexander Kriegisch
4152 eclipse Java - dummy2/src/de/scrum_master/aop/log4j/Log4jAspect.aj - Eclipse Platform - Java, Scala, ...
5608 Foxit Reader quick5A4.pdf - Foxit Reader
2812 TextPad TextPad - [C:\Dokumente und Einstellungen\Robin\Eigene Dateien\java-src\dummy2\bin\log4j.prop...
ご覧のとおり、両方のクロム ウィンドウが一覧表示されますが、オンボード コマンドGet-Process
はプロセスごとに 1 つのウィンドウのみを一覧表示tasklist
しcmd.exe
ます。
Get-Process | Where {$_.mainwindowtitle} | Format-Table id,name,mainwindowtitle -AutoSize
Id Name MainWindowTitle
-- ---- ---------------
2688 chrome cmd - tasklist show all windows - Stack Overflow - Google Chrome
4152 eclipse Java - dummy2/src/de/scrum_master/aop/log4j/Log4jAspect.aj - Eclipse Platform - Java, Scala, Aspec...
5608 Foxit Reader quick5A4.pdf - Foxit Reader
7452 powershell Windows PowerShell V2 (CTP3)
2812 TextPad TextPad - [C:\Dokumente und Einstellungen\Robin\Eigene Dateien\java-src\dummy2\bin\log4j.properties]
3572 TOTALCMD Total Commander 8.0 - Scrum-Master.de Inh. Alexander Kriegisch