Welcome Guest.   Make a donation to an author on the site August 22, 2014, 04:54:33 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Simple Duplicate Folder Finder  (Read 6944 times)
magician62
Supporting Member
**
Posts: 90


View Profile Give some DonationCredits to this forum member
« on: April 29, 2012, 06:07:14 AM »

There are many file finders out there, and many folder finders based on content, but I am looking for what should be something simple

I want to be able to automatically search defined locations,  for duplicate folder names, 1st level only, no recursion necessary.
Each duplicate is then prepended by a "+". There is no risk of collision as the searched folders can not have duplicates anyway.
There are currently over 12000 folders which are continually being added to


My concept
Define location by Windows library, or, Define location by Drive\Directory
If Windows library can be used, it already holds all the Drive\Directory locations, and if further locations are added to the library, they are effectively added automatically.

The locations can either be directly entered into a config file as they will in general, not change between sessions.

The minimum interface I can see is a start button and a finished notification

Where more than one instance of a filename exists , each gets prepended by a "+"

Example
Before
c:\My Search Folder1\Compare1
c:\My Search Folder1\Compare2
d:\My Search Folder2\Compare2
e:\My Search Folder3\Compare3

After
c:\My Search Folder1\Compare1
c:\My Search Folder1\+Compare2
d:\My Search Folder2\+Compare2
e:\My Search Folder3\Compare3

And that's it!

I am not looking for the major automation many utils provide, I am just looking for the folders the dupes may reside, so they can be physically checked. the "+" puts them at the top of the directory, and when physically checked, the duplicates not required are deleted, and the "+" removed from the remaining folder.
Logged
MilesAhead
Member
**
Posts: 4,767



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: April 30, 2012, 04:39:37 PM »

The only thing I found that looks like it may be close is this:

http://sourceforge.net/projects/vfolderdups/files/

There's not much on description. I'm not going to install it to see exactly what it is. But it's a Windows installer so I'm assuming it's Win32 code.

Unless writing a file manager app most people aren't keen on providing code to delete folders/files. There's just too much potential for unhappiness with no real upside. I would try the freeware sites if this sourceforge utility is not it.

Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
magician62
Supporting Member
**
Posts: 90


View Profile Give some DonationCredits to this forum member
« Reply #2 on: May 01, 2012, 11:30:15 AM »

Have to say, didn't like the Util, seemed to take ages installing. In fact it took longer to install/uninstall, than its actual life on the machine. Which sets the spider senses tingling smiley

Unfortunately it doesn't seem to allow for multi drives, which is essential, but apparently can find duplicates if they are in different folders on the drive. Which as I know there are no duplicates on each drive, as all folders are in a single top level direcory, makes it pointless.

I have tried many duplicate finders over the years, though most look for exact dupes, and some patern matching. Unfortunately all those I have seen want you to process all the items in the list, rather than provide a simple tagging system so you can come back at a later time, or even share the load if networked.

The util I seek has no need to delete any folders or files, just rename them, (stick a "+" at the front)  I can do the deciding and deleting
Logged
MilesAhead
Member
**
Posts: 4,767



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: May 01, 2012, 02:27:42 PM »

I think you would have a better chance lobbying an existing file manager to add the feature. Also I took a look at working with the new Windows Seven Libraries. It's all COM based and a lot of work for a feature that will only work in Windows Seven. Pretty nasty spaghetti code.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: May 01, 2012, 08:24:53 PM »

Just to clarify, this utility only needs to find and rename duplicate FOLDER names, right?  No FILE duplication matching whatsoever, correct?

If so, I've written a simple script that should do what you want but, obviously, it's only had minimal testing.
Logged

magician62
Supporting Member
**
Posts: 90


View Profile Give some DonationCredits to this forum member
« Reply #5 on: May 02, 2012, 12:25:04 PM »

Hi Jody, you got it. Its to find duplicate FOLDER names. I supply a number of locations across different drives, and ONLY those locatins need to be checked to see if they contain duplicate folders, no recursion needed. And the only action then is to add a + at the front which effectively gets the folders to the top of the list, which is in this case a Library view.

I then manually check contents, move from one folder to the other and delete whats unwanted, including the empty folder. I then manually remove the "+" from the folder
Logged
MilesAhead
Member
**
Posts: 4,767



View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: May 02, 2012, 03:31:07 PM »

I always thought '+' sign was restricted as a file/folder name character. Apparently it is allowed. I just created a new folder named with a '+' at the start. But I am seeing a lot of stuff on the web about deleted files/folders that start with a plus not showing up in recycle bin, and other anomalies. It may be asking for trouble. Even though it's an allowed character, it's used for concatenation on the command line. It's bound to be misread by some software(likely Windows itself.)

edit: a leading underscore may accomplish the same thing without the bugs. _FolderName should float to the top.. unless you already have a bunch of folders with leading underscores.
« Last Edit: May 02, 2012, 03:42:00 PM by MilesAhead » Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: May 03, 2012, 11:27:31 AM »

This is done but, since it's such a custom request, I'm not sure if anybody else will be able to get any use out of it.

There is no GUI and you must manually create a folders.txt file with the paths you want scanned.  This folders.txt file is expected to be in the same folder as the main program executable.  A message box will pop up when it's done scanning and report how many dupes it found and renamed.  I'll post the archive here for posterity.   cheesy

http://skwire.dcmembers.com/apps/snacks/Magician62DupeTool.zip
Logged

magician62
Supporting Member
**
Posts: 90


View Profile Give some DonationCredits to this forum member
« Reply #8 on: May 03, 2012, 11:31:55 AM »

Many thanks as always for a simple, but sweet utility. Has saved me about 3 hours work every few days
Logged
skwire
Moderator
*****
Posts: 4,025



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: May 03, 2012, 11:33:06 AM »

Many thanks as always for a simple, but sweet utility. Has saved me about 3 hours work every few days

You are very welcome.   smiley
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.032s | Server load: 0.02 ]