I would like to compare file if it identical or not.
I dont want to compare it by comparing byte by byte.
I'm thinking to use MD5 for this. Is this a good idea?
Something like:
$file = "c:\windows\regedit.exe"
$filedate = FileGetTime ($file)
$filesize = FileGetSize ($file)
$filecheck = $file1 & $filedate & $filesize
$md5 = _Crypt_HashData($filecheck, $CALG_MD5)
If $md5 <> $filecheck2 then
msgbox(0,"","File is different")
Else
msgbox(0,"","File is same")
EndIf
$
I would like to compare file if it identical or not.
I dont want to compare it by comparing byte by byte.
I'm thinking to use MD5 for this. Is this a good idea?
Something like:
$file = "c:\windows\regedit.exe"
$filedate = FileGetTime ($file)
$filesize = FileGetSize ($file)
$filecheck = $file1 & $filedate & $filesize
$md5 = _Crypt_HashData($filecheck, $CALG_MD5)
If $md5 <> $filecheck2 then
msgbox(0,"","File is different")
Else
msgbox(0,"","File is same")
EndIf
$