Last active
July 31, 2023 00:59
-
-
Save sharunkumar/09eeaf33338f7370e8f7ff6e72d0f66b 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