Computing hashes

This commit is contained in:
Samuel Vasko
2014-04-10 13:11:41 +02:00
parent db49c14422
commit b9379b3ae2
2 changed files with 10 additions and 2 deletions

View File

@ -42,4 +42,8 @@ function Flatten-Directory ($name) {
Rename-Item $name -NewName "$($name)_moving"
Move-Item -Path "$($name)_moving\$child" -Destination $name
Remove-Item -Recurse "$($name)_moving"
}
function Digest-MD5 ($path) {
return Invoke-Expression "md5sum $path"
}