set_time_limit(3600);


require_once("iecho.php");

require_once"API/batchFile.php");

$fl = new batchFile();

$fl->extname ="*"//the file type need to be operated ,format is [;php;html;]去除2目录下相同的文件去除2目录下相同的文件
$fl->deepLimit = 0
$fl->path='D:\movie\上传'//operate dir
$fl->start();
foreach$fl->file as $file )
{
    
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}

$fl->file = array();

$fl->extname ="*"//the file type need to be operated ,format is [;php;html;]去除2目录下相同的文件去除2目录下相同的文件
$fl->deepLimit = 0
$fl->path='D:\movie\mi'//operate dir
$fl->start();
foreach$fl->file as $file )
{
    
$arrFile[] = str_replace("/","\\",$fl->path.$file);
}

foreach$arrFile as $vfile )
{
    
$md5 = md5_file$vfile );
    
if$myArr[$md5] )
    {
        
$str .= "del \"". $vfile . "\"\r\n";
        
echo $vfile . "<br>\n";
    }
    
$myArr[$md5= $vfile;
    
$s .= $vfile . "\t=\t" . $md5 . "\n";
}

$rt = file_put_contents ( "d:\all.txt" , $s );

$rt = file_put_contents ( "d:\bad.txt" , $str );

相关文章:

  • 2021-11-30
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2021-11-29
  • 2021-05-16
  • 2021-11-07
  • 2021-08-18
  • 2021-12-09
  • 2021-08-08
相关资源
相似解决方案