i want report of open explorer windows titles , current paths. current paths part of problem answered here c#, want powershell , not sure how adapt it. not sure how bring out window titles part of it.
could please assist.
sounds me you're looking this:
$app = new-object -com 'shell.application' $app.windows() | select-object locationurl afaics window objects don't have title property, can information get-process via window handle id:
function get-windowtitle($handle) { get-process | where-object { $_.mainwindowhandle -eq $handle } | select-object -expand mainwindowtitle } $app = new-object -com 'shell.application' $app.windows() | select-object locationurl, @{n='title';e={get-windowtitle $_.hwnd}}
Comments
Post a Comment