|
- Set Word = CreateObject("Word.Application")
- Set Tasks = Word.Tasks
- For Each Task in Tasks
- If Task.Visible Then response.Write Task.Name &"<br>"
- Next
- Word.Quit
- Set word=nothing
- set tasks=nothing
复制代码
如图:
另附powershell版:
- gps | ? {$_.mainwindowhandle -ne 0} | select name, mainwindowtitle
复制代码 |
|