Page 1 of 1

Script to find duplicated files

Posted: 27 Jan 2017 12:52
by xnmp
i want to check if two files are duplicated by script
like this

Code: Select all

if ($file1 duplicated $file2) 
 {
  delete file1;
 }
please tell me the code using "Byte-to-byte" method and "SHA-1" method
reference of "Duplicate File Finder" feature
https://www.xyplorer.com/release_11.60.php

Thanks alot

Re: Script to find duplicated files

Posted: 27 Jan 2017 13:58
by highend
Byte-to-byte = readfile(<a file>, "b")
SHA1 = hash("<algo>", <file>, 1);

Re: Script to find duplicated files

Posted: 27 Jan 2017 19:33
by xnmp
Awesome,thank you very much ,highend