Skip to content

Instantly share code, notes, and snippets.

@sharunkumar
Last active July 31, 2023 00:59
Show Gist options
  • Save sharunkumar/09eeaf33338f7370e8f7ff6e72d0f66b to your computer and use it in GitHub Desktop.
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
$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