A pedant that hangs out in the dark corner-cases of the web.

Monday, March 26, 2012

What's in your path? A PowerShell one-liner

See all the executable items in your path.

ls ($env:path -split ';' |
% {$d=[Environment]::ExpandEnvironmentVariables($_)
$env:pathext -split ';' |
% {[IO.Path]::Combine($d,"*$_")}}) |ogv