Link to home
Start Free TrialLog in
Avatar of tncode
tncodeFlag for United States of America

asked on

I need a .BAT or .VBS file to delete duplicate file names.

I have two folders on two drives (c:\folder1 and d:\folder2 for example each with several sub directories). I want check the file names in folder1, in any sub directory,  and if the same file exists in folder2, in any directory, then delete the file in folder2. I don't care about comparing CRC, I just need to compare file names. I prefer to use two variables for the folder1 and folder2 because these folders will change from time to time. I need to write this in a .BAT or .VBS file.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tncode

ASKER

Thanks, it worked!
Avatar of Bill Prew
Bill Prew

Great, glad that was helpful, thanks for the feedback.


»bp