Rename to get-md5.ps1

This commit is contained in:
Markus Fleschutz 2021-09-07 21:59:30 +02:00
parent 4b0aa488d4
commit bd76412d58
3 changed files with 8 additions and 8 deletions

View File

@ -70,7 +70,7 @@ enable-god-mode.ps1, enables the god mode (adds a new icon to the desktop)
encrypt-file.ps1, encrypts the given file
fetch-repo.ps1, fetches updates for the current/given Git repository (including submodules)
fetch-repos.ps1, fetches updates for all Git repositories under the current/given directory (including submodules)
generate-qrcode.ps1, generates a QR code
get-md5.ps1, prints the MD5 checksum of the given file
hibernate.ps1, enables hibernate mode for the local computer (needs admin rights)
inspect-exe.ps1, prints basic information of the given executable file
install-github-cli.ps1, installs GitHub CLI
@ -145,7 +145,6 @@ list-workdir.ps1, lists the current working directory
locate-city.ps1, prints the geographic location of the given city
locate-ipaddress.ps1, prints the geographic location of the given IP address
locate-zip-code.ps1, prints the geographic location of the given zip-code
MD5.ps1, prints the MD5 checksum of the given file
make-install.ps1, installs built executables and libs to the installation directory
make-repo.ps1, builds the current/given Git repository
make-repos.ps1, builds all Git repositories under the current/given directory
@ -175,6 +174,7 @@ pull-repos.ps1, pulls updates for all Git repositories under the current/given d
query-smart-data.ps1, queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory
new-branch.ps1, creates a new branch in the current/given Git repository
new-email.ps1, starts the default email client to write a new email
new-qrcode.ps1, generates a new QR code
new-script.ps1, creates a new PowerShell script
new-shortcut.ps1, creates a new shortcut
new-symlink.ps1, creates a new symbolic link

Can't render this file because it has a wrong number of fields in line 83.

View File

@ -162,7 +162,7 @@ Mega Collection of PowerShell Scripts
| [list-unused-files.ps1](Scripts/list-unused-files.ps1) | Lists unused files in a directory tree | [Help](Docs/list-unused-files.ps1.md) |
| [list-workdir.ps1](Scripts/list-workdir.ps1) | Lists the current working directory | [Help](Docs/list-workdir.ps1.md) |
| [make-install.ps1](Scripts/make-install.ps1) | Installs built executables and libs to the installation directory | [Help](Docs/make-install.ps1.md) |
| [MD5.ps1](Scripts/MD5.ps1) | Prints the MD5 checksum of the given file | [Help](Docs/MD5.ps1.md) |
| [get-md5.ps1](Scripts/get-md5.ps1) | Prints the MD5 checksum of the given file | [Help](Docs/get-md5.ps1.md) |
| [new-shortcut.ps1](Scripts/new-shortcut.ps1) | Creates a new shortcut | [Help](Docs/new-shortcut.ps1.md) |
| [new-symlink.ps1](Scripts/new-symlink.ps1) | Creates a new symbolic link | [Help](Docs/new-symlink.ps1.md) |
| [new-zipfile.ps1](Scripts/new-zipfile.ps1) | Creates a new .zip file from a directory | [Help](Docs/new-zipfile.ps1.md) |

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
MD5.ps1 [<file>]
get-md5.ps1 [<file>]
.DESCRIPTION
Prints the MD5 checksum of the given file.
Prints the MD5 checksum of the given file
.EXAMPLE
PS> .\MD5.ps1 C:\MyFile.txt
.NOTES
@ -11,12 +11,12 @@
https://github.com/fleschutz/PowerShell
#>
param([string]$File = "")
param([string]$file = "")
try {
if ($File -eq "" ) { $File = read-host "Enter path to file" }
if ($file -eq "" ) { $file = read-host "Enter path to file" }
$Result = get-filehash $File -algorithm MD5
$Result = get-filehash $file -algorithm MD5
"✔️ MD5 hash is" $Result.Hash
exit 0