You know, I suppose one workaround is to do a search for .wav files in my music folder, and delete all the results. If worse comes to worst I'll do that. Still curious if there's a command line though.
I have approx. 12,000 music files on my harddrive, and half of them are mp3's and half of them are wav's. I want to delete all of the wav's and none of the mp3's. All of my music is arranged in Music\Artist\Album\Songfiles format. Is there a command line to delete ONLY the wav's without having to go into each individual folder?
For example, if I wanted to go in and unhide all my folder.jpg files in my music directory, I can browse to the root folder in DOS, and type the following:
'attrib -s -h -r *.jpg /s'
and it will go in through all of my folders and unhide everything with a ,jpg extension.
Does a simple line like this for deleting only certain filetypes exist?
I'm sure someone can come up with a better way to do this, but the way I would go about it, is with nested "for" statements
This would be run from within the Music directory. %i would be Artist directory %j would be album directory. Replace the "dir" with "del" and I think this should work for you.Code:for /d %i in (*) do for /d %j in (*) do dir "%i\%j\*.wav"
Thanks DP, I knew there had to be an easy one.
I was about to say use a wild card.
I have a similar request but more pain staking. I recently lost my collection in the car due to some weather. The last time I backed it up was in May, and it is a mess. Windows media pretty much corrupted it with several un needed jpegs. There is about 3 Jpegs (album art) per Album and my original one named FOLDER. Can I delete all Jpegs with the exception of the one named "Folder"?