Make a batch file find duplicate file names with different extensions, and actions on the results
Posted
by
Bringo
on Super User
See other posts from Super User
or by Bringo
Published on 2011-12-09T22:44:02Z
Indexed on
2013/07/01
4:23 UTC
Read the original article
Hit count: 252
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
© Super User or respective owner