Update inspect-exe.ps1

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

View File

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