- Total commander find duplicate files how to#
- Total commander find duplicate files code#
- Total commander find duplicate files plus#
Many times I like to keep old versions, especially of graphics, because I often mess up one and have to go back to an earlier version. In that case, it would be nice to run a batch at the end of the day or week to merge all the files onto my NAS. While my intent is to work on the NAS in the future and not have the files locally, I may find that my NAS is too slow for doing OCR or graphics and may have to work locally on files.
![total commander find duplicate files total commander find duplicate files](https://windows-cdn.softpedia.com/screenshots/Duplicate-File-Finder-Utility-to-Find-Identical-or-Same-Files-and-Remove-Duplicates_1.png)
Total commander find duplicate files plus#
Plus I have several computers in my house and depending on where I am for that time of the day, I create files and modify them on that computer. I had started doing it manually, but when I hit a directory with 38,000 files, I knew that was not the way to go. There are too many files for me to do this manually. I have at least seven 1.5 TB drives sitting in my floor with thousands of files on each one movies, scanned pictures, documents, etc, but don't want to trash yet. I use Total Commander for this, which is fully functional shareware, and it has several options for renaming the filename clashes while moving.
Total commander find duplicate files code#
Welcome to the forum, and we do enjoy batch files.įor your case - and this appears to be a one time task - it is not worth writing a batch file and debugging it, for the entire task.Īlso, excuse me for not reading your batch code but if it is faulty then studying it to find errors is a large task.Ī) create a directory on the NAS drive and then copy every source folder tree into this folder, complete and as it stands, in separate folders.ī) Then you can run a program over the entire tree to remove binary duplicates (and have the source files as backup for the entire operation).Ĭ) After that is done there is a GUI file manager which will allow you to merge folders, and while merging if any filename clashes occur then you can select the rename feature to continue merging the folder but rename filename clashes. *** Edited: See improved code in later post.***
Total commander find duplicate files how to#
Sorry, but I have lots of REM and ECHOs so I could learn how to do this. I had most of it working, but when I added spaces to the filenames, it didn't work, so started playing around to understand how to use quotes and broke most of everything. txt files with names like testFileA.txt, Test File B.txt and put them in a couple of subdirectories. I know that most of the time people want to overwrite duplicates, but I can see lots of uses for this to do a quick merge of drives or directories andĪllow a user to cleanup their files later.įor testing I created several. I am really surprised that this kind of batch file doesn't already exist on a forum somewhere. (Write to logfile here to note the file was moved)Īnd finally, I would like to be able to run the file from a command prompt like:Īny help would be greatly appreciated. (Write to logfile here to note the file was "duplicate - deleted")Ĭreate correct subdirectory and Move file
![total commander find duplicate files total commander find duplicate files](https://filesmint.com/wp-content/uploads/2020/03/Total_Commander_Screenshot.png)
If the compare fails (the files are slightly different), move the file but rename to "filename (1 or next available number).ext"Īnd if same move to "processed - ready to delete" folder If same date and size then do binary compare the files to make sure both are good (Write to logfile here to note the file was moved and renamed) (would like to compare to other files with incremented name and make sure not to add it if it already exists with an incremented name - compare date/size/bites before adding "(2)" version if "(1)" version alraedy exists ) If different, move but rename to filename (1 or next available number).extĮxample: src\my Text File.txt to dest\my Text File (1).txt If folder already exists, then (merge the files into one directory)
![total commander find duplicate files total commander find duplicate files](http://images.sftcdn.net/images/t_optimized,f_auto/p/101805d0-9b24-11e6-a287-00163ed833e7/3240603164/duplicate-commander-screenshot.jpg)
(Write to logfile here to note the folder was moved) If folder does not exist in destination, move (or copy if on different drives) the folder and all sub-folders and files to destination (keep existing directory structure) Here is my logic for what I am trying to code: I would use robocopy, but it doesn't seem to handle the scenario of wanting to keep files with duplicate names and rename them to a filename with an incremental number. I want to keep all unique files - they may have same name but different size/date, but delete duplicates - same name, same size, same date. I need to merge directories from several old hard drives onto a new home NAS but don't have time right now to go through the files individually because there are several TB of data - (a lot of duplication from backups of old computers). I'm a stay-at-home-homeschooling-mom and need help creating the following batch file for my home computers.Īlthough I used to make a living writing programs years and years ago, this is my first time to write DOS batch files (and the first time to ever post on a forum), so I am not familiar with all commands and syntax, but have been reading and looking at your programs, but couldn't find one to do what I am trying to do.