Duplicate Files

Need a way to check if two files are the same? Calculate a hash of the files. Here is one way to do it: ## Calculates the hash of a file and returns it as a string. function Get-MD5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]')) { $stream = $null; $cryptoServiceProvider = [System.Sec...