Skip to content

Instantly share code, notes, and snippets.

@fushnisoft
Created August 1, 2013 19:52
Show Gist options
  • Select an option

  • Save fushnisoft/6134629 to your computer and use it in GitHub Desktop.

Select an option

Save fushnisoft/6134629 to your computer and use it in GitHub Desktop.
$rtn = New-Object psobject -Property @{"Value"=$null; "name" = $null; "path"=$null}
1..500 |
ForEach-Object {
$rtn.Value = $_
$rtn.name = (new-object -com shell.application ).namespace($_).title
$rtn.path = (new-object -com shell.application ).namespace($_).self.path
if($rtn.name -ne $null)
{
Write-Host "$($rtn.value) $($rtn.name) $($rtn.path)"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment