Delete name-duplicate except the newest file

English support forum

Moderators: white, Hacker, petermad, Stefan2

LarsSandberg
Junior Member
Junior Member
Posts: 62
Joined: 2003-04-11, 07:46 UTC
Location: Denmark

Delete name-duplicate except the newest file

Post by *LarsSandberg »

Hi, is there any easy way to delete name-dublets except the newest file in TC. In TC 6.51 I ensured that files are sorted by date. Then I use hotkey ALT-F7 for search, under advanced I pick "find duplicate files" for "same name" only and do the search, then I hit "feed to listbox", where there then is a bunch of files, some with either 2,3, to 5 duplicates.
Apparently the duplicates isn't sorted by date, which makes it quite hard to identify the older name-duplicates for deletion.
Here it would be nice with some select all except newest name-duplicate.

Is there any solution today?
Best regards
Lars
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

There isn't. Christian said the problem is the deleting criteria - ie what to delete.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
LarsSandberg
Junior Member
Junior Member
Posts: 62
Joined: 2003-04-11, 07:46 UTC
Location: Denmark

Post by *LarsSandberg »

Hmm, thats sad. if just the files at least could be sorted by date with-in an individual duplicate-field, it would at least be easier to select the older versions
Best regards
Lars
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Delete name-duplicate except the newest file

Post by *Sheepdog »

LarsSandberg wrote:Is there any solution today?
Clonespy.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6490
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Delete name-duplicate except the newest file

Post by *Horst.Epp »

LarsSandberg wrote:Hi, is there any easy way to delete name-dublets except the newest file in TC. In TC 6.51 I ensured that files are sorted by date. Then I use hotkey ALT-F7 for search, under advanced I pick "find duplicate files" for "same name" only and do the search, then I hit "feed to listbox", where there then is a bunch of files, some with either 2,3, to 5 duplicates.
Apparently the duplicates isn't sorted by date, which makes it quite hard to identify the older name-duplicates for deletion.
Here it would be nice with some select all except newest name-duplicate.

Is there any solution today?
You can sort the list after feed to listbox.
Just press the column header as usual
There is nothing displayed but it still sorts to this.
LarsSandberg
Junior Member
Junior Member
Posts: 62
Joined: 2003-04-11, 07:46 UTC
Location: Denmark

Post by *LarsSandberg »

You can sort the list after feed to listbox
Hi Horst, thats right, but the problem is that with date sorting after feed to listbox, sorts the files, so they aren't shown as duplicate groups any more. So this is unusable. I guess that you didn't try?

Sheepdog, thanks for the clonespy tip, this little utility is great for the task
Best regards
Lars
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

LarsSandberg wrote: Sheepdog, thanks for the clonespy tip
You're welcome.
LarsSandberg wrote:, this little utility is great for the task
Yes I think so. :lol:

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Lev
Junior Member
Junior Member
Posts: 82
Joined: 2004-12-14, 13:08 UTC

Post by *Lev »

... the problem is that with date sorting after feed to listbox, sorts the files, so they aren't shown as duplicate groups any more. So this is unusable. I guess that you didn't try?
You must enable sorting by date BEFORE searching duplicates.
If you want a full control, then create a custom column including a date.
If you want to sort files after a search, then create a custom column with a file name, extension and a date combined in one column
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7 will contain a new command which will select all files in the same directory, so this may help if the files and their duplicates are in different dirs. It has helped me already once. If anyone has another idea of selecting files in this situation, then it's NOW the time to suggest it, because I'm still in the phase of adding new functions.
Author of Total Commander
https://www.ghisler.com
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ghisler(Author) wrote:If anyone has another idea of selecting files in this situation, then it's NOW the time to suggest it, because I'm still in the phase of adding new functions.
Keep the files that are
  1. newest
  2. oldest
  3. with longest
    • [3.1] filename
      [3.2] full path (path inc. filemname)
      [3.3] Dir path (path without filename)
  4. with shortest
    • [4.1] filename
      [4.2] full path (path inc. filemname)
      [4.3] Dir path (path without filename)
  5. Export a List of all equal files
It's taken from Clonspy but I think it's a good bunch of choices that should fit most needs.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3295
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Sheepdog wrote:It's taken from Clonspy but I think it's a good bunch of choices that should fit most needs.
100% ACK!
Hoecker sie sind raus!
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Could match

Post by *Clo »

:) Hi All !

- Certainly fell in the Bottomless Well of the Good Old Brainwaves, someting that could match the topic, as a buit-in feature.

- Indeed, it isn't updated, but I guess that the principle could do the trick, in a so simple way… :roll:

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
LarsSandberg
Junior Member
Junior Member
Posts: 62
Joined: 2003-04-11, 07:46 UTC
Location: Denmark

Post by *LarsSandberg »

You must enable sorting by date BEFORE searching duplicates
Lev. If you read my first post, you will know that I did that, and this doesn't work. Just try and you will know what i'm speaking about
Best regards
Lars
User avatar
Lev
Junior Member
Junior Member
Posts: 82
Joined: 2004-12-14, 13:08 UTC

Post by *Lev »

OK, then what about a custom column? - I've tested it before posting and it works
LarsSandberg
Junior Member
Junior Member
Posts: 62
Joined: 2003-04-11, 07:46 UTC
Location: Denmark

Post by *LarsSandberg »

Lev wrote:OK, then what about a custom column? - I've tested it before posting and it works
Hi. Lev. I tried that, with sort on creation-date (custom-column), after that I tried with feed to listbox.
Result: This doesn't work either. I have made a screendump ready as a png-file, which proves what I say, however I can't see how to attach a picture from my harddrive in this post, so I posted on a ftp-server:
ftp://83.93.73.168
login is anonymous
Best regards
Lars
Post Reply