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