find - Batch to filter out duplicates in separate directories -
i have 2 folders 2 different locations bunch of automatically generated (generated through install , repair/ reset) files in them.
occasionally happens file of particular name , extension found in both folders causes errors in associated program, solution delete 1 of 2 1 remains.
i use batch @ work novice xcopy , on commands, how if can achieve desired result?
the op wrote:
never mind fixed it:
for /r c:\1\ %%f in (*) if exist "c:\2\%%~nxf" del /s /q "c:\1\%%~nxf
Comments
Post a Comment