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

@ -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