用powershell 获取windows窗口标题

获取windows 所有进程窗口的标题

命令如下

Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle –AutoSize

显示如下:

PS C:\Documents and Settings\Administrator> Get-Process |where {$_.mainWindowTIt
le} |format-table id,name,mainwindowtitle –AutoSize

  Id Name       MainWindowTitle
  -- ----       ---------------
1932 cutftp32   没有连接 - GlobalSCAPE, Inc. - CuteFTP 5.0 XP
5148 iexplore   百度一下,你就知道 - Microsoft Internet Explorer
4332 isqlw      SQL 查询分析器 - [打开表 —122.224.199.238.a0515134943.dbo.P...
1988 powershell C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
 原文

posted on 2009-06-01 09:23  无意  阅读(2531)  评论(0编辑  收藏  举报

导航