Copy & auto-rename only if different
Moderators: white, Hacker, petermad, Stefan2
Copy & auto-rename only if different
Hello, first let me thank you for the best software of this type I've ever seen!
(BTW, I've bought a license.)
However, I stumbled upon a problem -- there is something TC cannot do. I often have to merge files from multiple folders into a single folder. I have to search the folders and copy the files from the search result list. There are hundreds of duplicate files, having the same name, but one or more of the files have actually different content (only the same name).
What I need to be able to do is if TC is copying files from a search result list to a destination, and the destination already contains a file with the same name, and asks me how to resolve that conflict, then there should be a function Copy & auto-rename only if content different.
If that function was used, TC would first compare the content of both files with the same name, and if their contents are the same, it would not copy the file (if the contents are different, it would copy and auto-rename the file being copied).
I hope it all makes sense. I can explain further if needed.
Thanks! [/b]
(BTW, I've bought a license.)
However, I stumbled upon a problem -- there is something TC cannot do. I often have to merge files from multiple folders into a single folder. I have to search the folders and copy the files from the search result list. There are hundreds of duplicate files, having the same name, but one or more of the files have actually different content (only the same name).
What I need to be able to do is if TC is copying files from a search result list to a destination, and the destination already contains a file with the same name, and asks me how to resolve that conflict, then there should be a function Copy & auto-rename only if content different.
If that function was used, TC would first compare the content of both files with the same name, and if their contents are the same, it would not copy the file (if the contents are different, it would copy and auto-rename the file being copied).
I hope it all makes sense. I can explain further if needed.
Thanks! [/b]
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This would actually be quite slow, especially with many files with the same name and different content - TC would have to compare each copied file with all the copies which are already present.
It would be faster to just copy all files with auto-rename, and then use the duplicate file finder to remove the duplicates. This is faster because the duplicate file finder uses file checksums when there are more than 2 files with the same size.
It would be faster to just copy all files with auto-rename, and then use the duplicate file finder to remove the duplicates. This is faster because the duplicate file finder uses file checksums when there are more than 2 files with the same size.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I agree that that would be faster. I was aware of the function to find duplicates.ghisler(Author) wrote:It would be faster to just copy all files with auto-rename, and then use the duplicate file finder to remove the duplicates. This is faster because the duplicate file finder uses file checksums when there are more than 2 files with the same size.
However, I may be missing something, I used the Search function to find duplicates, then Feed to Listbox but then there was no straightforward automated function to delete only the duplicates while keeping one of the files.
How do I do that? Ideally there should be some regex or heuristics to determine which kind of filename is to keep and which are to delete.
But TC seemed to expect me to manually choose all duplicates and then delete them. But that's impossible with thousands of files that have one or more duplicates.
Consider this example:
You find 3 duplicate files:
text.txt
text(2).txt
text(3).txt
I would like to be able to tell TC to automatically delete all such duplicates except the one with the shortest name (text.txt) but only if their contents are the same.
But in the current version, how can I have TC automatically delete all found duplicates?
Ok sorry I've now upgraded to 64-bit v9.10 and found out that it has new Select Duplicate Files (Num+) dialog that does what I needed. Great! Thanks and sorry for not trying the latest version before posting.
However, I'd like to ask for new options to be added to the section "Leave at least one unselected".
Those option would be:
"Shortest filename"
"Longest filename"
"Filename without brackets"
The reason being that auto-renamed duplicates usually have longer filenames and/or bracketed numbers added to the original names.
Thanks for consideration.
However, I'd like to ask for new options to be added to the section "Leave at least one unselected".
Those option would be:
"Shortest filename"
"Longest filename"
"Filename without brackets"
The reason being that auto-renamed duplicates usually have longer filenames and/or bracketed numbers added to the original names.
Thanks for consideration.
davlar,
Roman
So I assume the answer is "they would be copied normally"?The function I suggested would apply only to files with the same name and content (that's why the name of the function says "auto-rename").
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.