 |
|
 |
There is one program which does exactly what the author here does, and also what some people have requested as features.
The Program Name is called Clone Master (Why the name - I do not know .. but it works ).
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi, Here's the link[^] for Clone Master. Basically I did this utility because
eRRaTuM wrote in his article : I needed some free utility that could find duplicate files, but I found none that corresponded to my needs. I decided to write one.
And I published it, because I thaught it would be interesting to share the code...
:(
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
No worries eRRaTuM, we like your version better, and it comes with source, and you don't have to pay $40 like you do for clone master...
I can't believe anyone would even bother to compare the two. Sheesh. 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Good Article! Useful tool. As you seem to have an interest in this sort of thing, you are perhaps aware of the possibility of 'collisions' in MD5, but in case you aren't take a look at this[^]
I know so little about encryption that I can't tell if there is a possibility that this could happen for your code, it's just that I came accross the link yesterday and your article today.
Cheers.
Henry Minute
Never read Medical books. You could die of a misprint. - Mark Twain
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Henry Minute wrote: Never read Medical books. You could die of a misprint. - Mark Twain
It applies also for IT books ... I guess 
Seriously, I think that MD5 collisions shouldn't apply for files.
O TEMPORA ! O MORES !
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
System.ArgumentException thrown while parsing your post! Kernel panic! Switching to standard mode!
Hi, How are you!
O TEMPORA ! O MORES !
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Well, I just dloaded this today and made some small changes quick so i could use it for my own purposes, but now I get this thread exception. I see that there was a post already, but I don't see the solution...
--exception occurs in frmMain.cs at--- private void deleteCheckedDuplicateFiles() { ... int len = lstFiles.CheckedItems.Count; ... } --exception from VS2008 "An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Cross-thread operation not valid: Control 'lstFiles' accessed from a thread other than the thread it was created on."
I was hoping to put this to use sometime today yet. Can anyone offer a quick fix? (code is currently using MD5 hashing, not that it matters.)
Thanks.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, Cross thread exception is thrown when a programm is calling a form Property from a child running thread, I guess it happens only in debug mode (F5)
public partial class frmMain : Form { private Thread tdBad;
private void BadMethod() { frmMain.Button1.Text = tdBad.Name; }
private void MethodCalledByThread() { BadMethod(); } }
The new version I posted 2day contains cross thread exception free sources.
O TEMPORA ! O MORES !
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Its just what i need - i had almost finished my own project of exactly the same thing when i found this! I assume you went down a similar path to me - i was looking for a simple, free duplicate image program and they all A) REALLY sucked, B) cost ridiculous amounts of money and C) had obvious missing features. This simple program of yours does more than any of them and its open source 
It is quite well architected - only comment i have after very quickly skimming the code is some of it seems a bit overly complex - like you seem to have implemented your own directory recursion, rather than using Directory.GetFiles() which supports this automatically!?? Also you use a lot of FileInfo and DirectoryInfo objects which are more expensive than just using the string paths when you dont seem to make any other use of the Info classes. Perhaps you did and i just missed it in my quick scan.
In any case, great job i like it a lot
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I am in need of a tool similar to this, however to find non duplicate files with the same name.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
hello, I don't know if it really needs an application, using the explorer, press F3 button and search for all files i.e: *.* in advanced search mode and sort them by name.
:: YOU make history ::
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello, Yes that is a solution. However with currently around 8000 files, and the need to check for duplicate names on a daily basis the amount of time involved as well as the high possibility for human error on such a scale proves this solution not viable in my circumstances. Thanks for the thought though.
PS. I've attempted another solution. Command line I CD to the directory. Use:
DIR /S >1.txt
the /S lists files in the subdirectories. the >1.txt outputs the returned lines into a text file named 1
Then I imported the file into excel, sort by filename then compare with a logical function if the one is equal to the one underneath it. Then sort by the logic return column and I have a list of duplicate name files.
One problem however, each line does not contain the location of each file, so I have a list but not sure what directories they are in, I can run a search for them.
I thought it would an easy option to add into the program being that it already creates and compares the files the directory and sub-directories.
Thanks
modified on Tuesday, September 16, 2008 11:16 AM
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Could you dir /s /b to get a list of all files, including path, import that into one column, then generate a second column containing just the content past the last "\", and sort on that latter column?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Thats really a nice article thanks.
Aamer A. Alduais final_zero
My Favorite Qoute "Faliure is the beginning of Success" Aamer A. Alduais (^_^Me^_^)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanx Man, It should encourage you to start writing, you know, all contents are interesting specially networking articles are always helpfull, you should start by now!
Because -----| | | | V
"ForumSig">:: YOU make history ::
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
final_zero wrote: Faliure is the beginning of Success
Good Luck with your troubles (we're in R A M A D A N, so... !)
:: YOU make history ::
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Nice app but the hashing part of the process takes significant time, several hours at least on a new Quad Core PC with roughly 100k files (800gb). Could the hashes be saved in some cache file so they don't have to be re-computed every time?
It looks like the app only really uses 1 cpu so perhaps it could be sped up by computing the hashes for multiple files at the same time.
|
| Sign In·View Thread·PermaLink | 4.00/5 (2 votes) |
|
|
|
 |
|
 |
GregSawin wrote: Could the hashes be saved in some cache file so they don't have to be re-computed every time
Of course, just like minimalist antiviruses it should be saved in NTFS stream when available or somewhere if not, but you should be notified when file content change, and then recalculate the hash...
Well it for sure IS feasible as described above... but... is it really the goal of the app? 
GregSawin wrote: it could be sped up by computing the hashes for multiple files at the same time
Do you mean using a hashing thread pool? Could U explain more?
:: YOU make history ::
|
| Sign In·View Thread·PermaLink | 2.67/5 (2 votes) |
|
|
|
 |