mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-20 17:08:19 +02:00
Update inspect-exe.ps1
This commit is contained in:
parent
c1317242a8
commit
0f00ffd371
@ -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])"
|
||||||
|
Loading…
Reference in New Issue
Block a user