-
-
Save andrewgalbraith/0b7be7fa6abc8dd926e1ca24a0488d78 to your computer and use it in GitHub Desktop.
PowerShell Script to get all the binaries in the path variable, on windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $env:Path.split(";") | ForEach-Object { | |
| Get-ChildItem -Path $_ -ErrorAction SilentlyContinue | |
| } | Where-Object { $env:PATHEXT.ToLower() -match $_.Extension.ToLower() } | Select-Object FullName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment