Skip to content

Instantly share code, notes, and snippets.

@syu5-gh
Last active August 29, 2015 13:57
Show Gist options
  • Save syu5-gh/9889572 to your computer and use it in GitHub Desktop.
Save syu5-gh/9889572 to your computer and use it in GitHub Desktop.
HOW TO : Make sure whether 2 binary files are same or not with PowerShell 4.
function IsEqualBinFile {
param($src, $dst)
$src_hash = Get-FileHash $src
$dst_hash = Get-FileHash $dst
if ($src_hash.Hash -eq $dst_hash.Hash) {
return $True
}
return $False
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment