I have two directory on my D drive. D:\1
and D:\2
. Directory 1 and 2 and subdirectories have a bunch of files.
I need a batch file that will:
- Read each file in Directory 1 and check if the same file exists in Directory 2
- Avoids duplicates files
- Moves only those files which are not present in directory 2 to a different directory
C:\3
with the same folder structure. - Read the next file, and so on.
At the end I have C:\3
which has only the unique files from 1. I know I can drag and drop … but I need this in a batch file.