Script to find duplicated files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
xnmp
Posts: 88
Joined: 15 Mar 2013 04:46

Script to find duplicated files

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Script to find duplicated files

Post by highend »

Byte-to-byte = readfile(<a file>, "b")
SHA1 = hash("<algo>", <file>, 1);
One of my scripts helped you out? Please donate via Paypal

xnmp
Posts: 88
Joined: 15 Mar 2013 04:46

Re: Script to find duplicated files

Post by xnmp »

Awesome,thank you very much ,highend

Post Reply