1) I take a folder from the user and mark it as main folder.
2)Assumes there are 2 other folders with same folder structure.
3)Compares the MD5 values of a file in main folder tree with a file in the same position as in main folder from the second and third folder.
4)prints certain values based on a logic developed by me.Now for the problem - 1) When there exists a zip file in sub folder of main and similar or same zip files exists in sub folders of second and third folder , the result got is wrong because the file is not extracted and MD5 is digested for the zip file.
2)Here i used a zipdiff.exe tool( free tool of course )to finish of the work but that again is not able to do what I wanted it to.
I kindly request you all to look into this if you find it interesting and come out with a solution..
Here $temp_var1,$temp_var2,$temp_var3 are the MD5 values of a file with same name existing in main , second and third folders respectively. $v1 is a flag , which i am setting to find any error.if($temp_var2 ne $temp_var1 and $temp_var3 ne $temp_var2 and $temp_var +2!~/FNF/ and $temp_var3!~/FNF/ and $temp_var3 ne $temp_var1){ if(($file1 eq $file2) =~(/.zip/i)){ system "c:\\zipdiff.exe $file1 $file2> +d:\\zipdiff.tmp"; open (ZDF, "<d:\\zipdiff.tmp"); $zipdiffresult = (<ZDF>); close (ZDF); #DeleteFile ("c:\\bin\\zipdiff.tmp"); if($zipdiffresult!~/different/){ printf LOG"2";$v1=1;} else{printf LOG"5";$v1=1;} } }
Thanks a ton in advance , as I believe , there are pearled people here..
Prad
In reply to Zipped problem ! by prad_intel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |