 |
|
 |
Has there been any updates on this project, I realise it is some years old but still useful. I'm getting the thread exception error and the restore files are missing.
Any updates would be great or where I can access the latest version.
Thanks
|
|
|
|
 |
|
 |
This software is not running...only the browse can working...temme a proper source code
|
|
|
|
 |
|
 |
I’m sure that Duplicate Finder will be the best assistant for you. It is an award-winning small shareware utility to find duplicate files and to remove duplicate files. It will help you search duplicate files. Try it.
Duplicate Finder
|
|
|
|
 |
|
 |
Hi,
This tool is great - more practical than any of the commercial ones I've tried! I do find though that it crashes when you add too many files. I added two drives to it, probably 1.5TB total, with *.* files but a filter so that only files 20MB+ would be scanned. Each time I've left it be while it's been obtaining the MD5's of the files, and when I've returned there has been a 'hard' crash (black screen, hard reset required).
I would have thought with managed code like C# there would be an exception dialog and not a hard crash, so perhaps another issue is contributing. The computer has not crashed in this way previously though. [Note: Trying a similar thing on another computer had the app stop responding, but it didn't take down the PC]
Has anyone else experienced this? If so I'll do some more testing of exactly when the error occurs. Is there a log file I could post?
Thanks!
|
|
|
|
 |
|
 |
I looked at this as I needed a similar program to find folders with identical contents. However filling the listview takes hours and hours when there are several 10ks of identical files. I believe the issue is that it refills the list of files to delete for every file added.
|
|
|
|
 |
|
 |
The CLR has been unable to transition from COM context 0x1a7ff8 to COM context 0x1a7e88 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.
Using Visual Studio 2008
private void btnGo_Click(object sender, EventArgs e)
{
lockControls(true);
lstFiles.Items.Clear();
alFiles.Clear();
this.Cursor = Cursors.WaitCursor;
SearchFiles();
}
The application does not handle large directories well. When searching a large directory the main window does not get refreshed. The progress bars do not work.
Robert
|
|
|
|
 |
|
 |
Hi eRRaTuM, excellent job on this article. I am using it to learn programming and it is very useful for the purposes you wrote it for in the first place as well.
When I downloaded the source and unzipped it, I found that the entire project did not load. The missing components are Missing ConsoleTestRestorer & Restorer.
Could you or someone please point me to the right location or email me the complete source at sril@hotmail.com.
Thanks and keep up the good work!
Shiku
|
|
|
|
 |
|
 |
Just go ahead and run it. VS2008 compiles it OK even without the 'restorer' files.
|
|
|
|
 |
|
 |
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 ).
|
|
|
|
 |
|
 |
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...
:(
|
|
|
|
 |
|
 |
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.
|
|
|
|
 |
|
 |
Well, if u say so
O TEMPORA ! O MORES !
|
|
|
|
 |
|
 |
Big thanks to u! Your project is great! I love it
Impossible = I'm possible!
|
|
|
|
 |
|
 |
Big thanks to u 2 for your FIVE
O TEMPORA ! O MORES !
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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 !
|
|
|
|
 |
|
 |
private string m_deleteFolder = @"F:\DuplicateFiles";
in frmMain
|
|
|
|
 |
|
 |
System.ArgumentException thrown while parsing your post!
Kernel panic!
Switching to standard mode!
Hi, How are you!
O TEMPORA ! O MORES !
|
|
|
|
 |
|
 |
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.
|
|
|
|
 |
|
 |
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 !
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
Thank you,
In a way, I could have done it that way, But MY problem was that Dir.getFiles is not event enabled, and cannot return files if ran from the root folder (try Directory.getFiles(@"C:\");) wich is due to permissions...
This applies also to MD5 class wich extends the .net Crypto class and is event enabled.
I used FileInfo List so as to access filesystem only once. {optimisation }
=Xc@libur= wrote: Its just what i need - i had almost finished my own project of exactly the same thing when i found this!
Anyway... I would have liked to see your project on CODEPROJECT...
Perhaps very soon
Credo quia absurdum
|
|
|
|
 |
|
 |
I am in need of a tool similar to this, however to find non duplicate files with the same name.
|
|
|
|
 |
|
 |
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 ::
|
|
|
|
 |
|
 |
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
|
|
|
|
 |