Only delete duplicates of files in folder x:\ found elsewhere
Posted: Sat Mar 29, 2025 8:38 am
Two folders:
X:\Folder1
Y:\Folder2
both folder1 and folder2 with sub folders.
Talking about many files (60,000 or so).
Folder1 has files with duplicates elsewhere in folder2.
The files in folder1 should not be touched. However, the duplicates of the files in folder1 that are found in folder2, should be deleted.
However... folder2 may also have duplicates of OTHER files (i.e. other files than those of in folder1).
Those should remain in place, I will do that separately.
Example:
Folder1\sub folder\sub subf folder: SomePDF123.pdf
Folder2\sub folder: SomePDF123.pdf <-to be deleted
Folder2\sub folder\sub folder: otherduplicate.txt
Folder2\sub folder: otherduplicate.txt <- this will be done separately
So, first only delete duplicates found in folder2, being the duplicates of files in folder1
(folder1 should remain untouched).
How to proceed?
Thanks!
X:\Folder1
Y:\Folder2
both folder1 and folder2 with sub folders.
Talking about many files (60,000 or so).
Folder1 has files with duplicates elsewhere in folder2.
The files in folder1 should not be touched. However, the duplicates of the files in folder1 that are found in folder2, should be deleted.
However... folder2 may also have duplicates of OTHER files (i.e. other files than those of in folder1).
Those should remain in place, I will do that separately.
Example:
Folder1\sub folder\sub subf folder: SomePDF123.pdf
Folder2\sub folder: SomePDF123.pdf <-to be deleted
Folder2\sub folder\sub folder: otherduplicate.txt
Folder2\sub folder: otherduplicate.txt <- this will be done separately
So, first only delete duplicates found in folder2, being the duplicates of files in folder1
(folder1 should remain untouched).
How to proceed?
Thanks!