Ok experts!
Files in Dir A:
1.000
2.000
3.000
4.000
5.000
Files in Dir B:
1.000
2.000
5.000
Batch file wanted to move 3.000, 4.000 (ALL files that are NOT the same as in dir B) from dir A to dir C.
Thanks
Move unmatched files
Moderator: DosItHelp
Re: Move unmatched files
Code: Select all
@echo off
cd DirA
for %%a in (*.*) do (
if not exist "\DirB\%%a" (
copy "%%a" \DirC
)
)