Monday 9 July 2018

windows - Is there a way to remove files from a folder that are in another folder?


Let's say I copy and paste files from folder A, which includes:


Folder A:


file1.cfg  
file2.txt
file3.esp
file4.bsa

into folder B, which after updating, has:


Folder B:


apples.mp3  
file1.cfg *
file2.txt *
file3.esp *
file4.bsa *
turtles.jpg

Is there a way to delete all files from folder A that are in folder B (marked with a *)? Besides manually selecting each one and deleting it, or ctrl-Z'ing right after the copy-paste


I would prefer either a windows method or some software that could do this


thanks!



Answer



There's free software out there called WinMerge. You can use this software to match up duplicates. First, use FileOpen, and choose both directories, with the folder with files you want to keep on the left, and those you do not on the right. Then, go to View, and deselect Show Different Items, Show Left Unique Items, and Show Right Unique Items. This will leave just the identical files left in the list. After that, choose EditSelect All, right-click on any file, and click on DeleteRight. This will delete the duplicates from the right-hand folder.


demo of WinMerge


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...