1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-06-13 08:26:57 +02:00

Update inspect-exe.ps1

This commit is contained in:
Markus Fleschutz 2022-09-07 15:34:21 +02:00
parent c1317242a8
commit 0f00ffd371

@ -18,7 +18,7 @@ param([string]$PathToExe = "")
try {
if ($PathToExe -eq "" ) { $PathToExe = read-host "Enter path to executable file" }
get-childitem $PathToExe | % {$_.VersionInfo} | Select *
Get-ChildItem $PathToExe | % {$_.VersionInfo} | Select *
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"