Also, how did you run this command? did you run it from a command prompt, or from the Start-->Run and type it in there?
You need to open a command prompt, then change directory to the parent directory of all your album folders. Then run it from there.
So if you have a folder named "Music" on your C: drive that has multiple folders under it, you need to cd\music and then run the command.
blurp and d_sellers1:
I ran from start->run->command, in the correct directory, with admin privileges, none of the files open.
Here is what is wierd that I failed to mention before - if I type the code as posted in your initial post:
then the command WORKS! It names all the album covers as "album.jpg". If I change only the text "album" in the above code to "folder" - then I get the access denied message. Wierd???!!! Why is that?! I want the files named as "folder.jpg", not "album.jpg"
for /r %%I in (*-*.jpg) do copy "%%I" "%%~dpIalbum.jpg"
That's really strange, I just tried it with folder, and it worked for me. What OS are you using?
Edit: OH! do you already have some files named folder.jpg in some of the folders? If so, run the command that d_sellers1 posted, then run this to delete all of them:
and see if it gives you any errors. This will tell you if one of the folder.jpg files is locked by something.
for /r %%I in (folder.jpg) do del "%%I"
I didn't delete 2 jpg files before running the command as they were for an album that was unreleased and couldn't be retrieved by the album art downloading programs...
I guess these 2 jpg files were causing the problem! I did the attrib command and then tried again and now it works! I've got "folder.jpg" in every album folder now! Thanks for the help guys!!!
:D :D :D :D WooHoo! The command prompt king wins again! :lol: :lol:
Glad I could help.
For Windows XP SP2 (Tested)
Copy this into a text document and save it as AlbumArt.bat in your MyMusic or whatever folder, then open a command prompt or just execute from explorer...
<<Code Follows do not use this line in bat file>>
@echo Album Art Generation
attrib -S -H -R f*.jpg /S
FOR /R %%I IN (F*.jpg) DO copy "%%I" "%%~dpIalbum.jpg"
<<Code Done, do not use this line in bat file>>
This will grab all your hidden folder.jpg files and make them album.jpg(s)