diff --git a/README.md b/README.md index 1f60269a..67ceca1c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The following PowerShell scripts can be found in the `Scripts/` subfolder: * [configure-git.ps1](Scripts/configure-git.ps1) - sets up the Git configuration * [download.ps1](Scripts/download.ps1) - downloads the file/directory from the given URL * [empty-dir.ps1](Scripts/empty-dir.ps1) - empties the given directory -* [exe_info.ps1](Scripts/exe_info.ps1) - prints basic information of the given executable file +* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file * [latlong.ps1](Scripts/latlong.ps1) - prints the lat/long coordinates of the given city * [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree * [list-unused-files.ps1](Scripts/list-unused-files.ps1) - lists unused files in a directory tree diff --git a/Scripts/exe_info.ps1 b/Scripts/inspect-exe.ps1 similarity index 71% rename from Scripts/exe_info.ps1 rename to Scripts/inspect-exe.ps1 index 9c4c868a..f81d3894 100755 --- a/Scripts/exe_info.ps1 +++ b/Scripts/inspect-exe.ps1 @@ -1,12 +1,15 @@ #!/snap/bin/powershell -# Syntax: ./exe_info.ps1 +# Syntax: ./inspect-exe.ps1 [] # 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 {