Make a batch file find duplicate file names with different extensions, and actions on the results
- by Bringo
What I want to do is have a batch file search folders, and subfolders, for matching file names that are ending in .mp3 and .wma and delete or move the *.wma duplicates.
Below you'll find what I have come up with until now, I know it is wrong for at least two reasons. I have searched the internet, and tried a number of things, but now I am stuck. Can anyone please help me with this?
for /r %%f in "(%userprofile%\my music\* - ?.*)" do del "%%f" /s/p