I have directoryA that gets populated as a replica of directoryB, and some files are changed or added. I want to automate the process of deleting all files from directoryA that have redundant copies in directoryB.
Both directories have several layers of sub-directories, so the solution will likely have to be recursive.
My first thought is to create a batch script, but I'm new to the microsoft command prompt, and it seems to be widely different from bash scripting, with which I have some limited experience.
I am using Windows XP, but would like a solution that also worked on Windows 7.