What I need is a 'subtract' operation on sets of files in different directories. Assuming this file system hierarchy:
A\1.txt
A\2.txt
A\3.txt
B\2.txt
B\4.txt
... I'd like to remove all files under A
that also exist under B
(no recursion, and I only need to compare file names).
The result should be:
A\1.txt
A\3.txt
(nothing changed in B\
)
The target OS is Windows - either command line or a GUI tool. I'm also OK with a UNIX command-line approach - I have GnuWin32 installed.