- Jun
- 1,101
- 48
After some experimentation with DEDUPE, I think I understand how it works. Basically, it runs through all the specified directories, generating the hash codes for the files, and noting any duplicates and/or acting (if the /D. /H, or /L option is specified) on any duplicates found after the initial file. I have a couple of questions.
- Is there a reason why there is no option (e.g., /O) to specify the order in which the files are processed in each directory? I can imagine wanting to have DEDUPE remove the duplicates with the earlier or later time stamp or perhaps the earlier file name (e.g., keep file1.txt and delete duplicates file2.txt and file3.txt -- that's a case I actually encountered).
- I have a situation in which I would want to specify the /S option for some of the directories but not others. So I would have wanted a syntax like
DEDUPE ... subdir1 /s subdir2 /s parentdir., with the option being placed after the directory name (or it could be before the directory but apply only to the one directory immediately following the option). In my case, subdir1 and subdir2 are subdirectories of parentdir, and I want to delete from the parent any files that have been copied into or otherwise duplicated in the subdirectory trees subdir1 and subdir2. If the /S option applied to parentdir, the subtrees would be processed again. (And what happens when the same file is processed a second time and is, of course, a duplicate of itself.)