Renamed to inspect-exe.ps1

This commit is contained in:
Markus Fleschutz
2020-12-08 15:01:57 +00:00
parent 0de1ff9c1f
commit ec35a6cfb1
2 changed files with 5 additions and 2 deletions

19
Scripts/inspect-exe.ps1 Executable file
View File

@ -0,0 +1,19 @@
#!/snap/bin/powershell
# Syntax: ./inspect-exe.ps1 [<executable-file>]
# Description: prints basic information of the given executable file
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
param([string]$File)
if ($File -eq "" ) {
$File = read-host "Enter path to executable file"
}
try {
get-childitem $File | % {$_.VersionInfo} | Select *
exit 0
} catch { Write-Error $Error[0] }
exit 1