mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 04:31:39 +02:00
Rename to get-md5.ps1
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user