mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Renamed to inspect-exe.ps1
This commit is contained in:
parent
0de1ff9c1f
commit
ec35a6cfb1
@ -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
|
||||
|
@ -1,12 +1,15 @@
|
||||
#!/snap/bin/powershell
|
||||
|
||||
# Syntax: ./exe_info.ps1 <file>
|
||||
# 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 {
|
Loading…
Reference in New Issue
Block a user