Have you been creating playlists by copying and pasting your MP3 Files from one Folder to another and have ended up with 10 copies of the same song and now need to get things right?
All you need is a job that will compare the content of two Folders and move any duplicate items into a third Folder.
So let’s see how we can accomplish that...
We will start by displaying a Select Folder Dialog to select the Folders we want to compare (Folder A, and Folder B), using the “Display Select Folder Dialog” Action.

We will then continue by getting a list of all the Files contained within these two Folders, using the “Get Files in Folder” Action.

If these Folders contain Subfolders you might also want to check the content of, and compare it to the rest, then you can tick on the “Include Subfolders” option.

We will then use the “For Each” Action, and tell it that for each item contained on the list of Folder A, we want it to check every item contained in the list of Folder B, and check whether the names of the two Files are the same.

If the names are the same, we will then use the “Move Files” Action, to move the duplicate File found in Folder B into the “Doubles” Folder.

If the CurrentSong_1 (from Folder A) is found within Folder B, then it does not need to continue checking the other Songs, so we will end our inner Loop by using the "Exit Loop" Action, just after the "Move File" Action. That would only end the inner Loop, and would make the Job run for the next CurrentSong_1 on SongList_1.
If the "Include Subfolders" option is selected, that means that within the same list of Files we can have the same file name more than one times, since it is a list of Files contained within a Folder and its Subfolders. In that case we would not use the "Exit Loop" Action.

You can always customize this Job to look into more than one directories and also sort your MP3 Files according to the First Letter of the Band Name.
Post new comment