I'm pretty sure you can do this from scanning the command reference but I'm not sure how to do it myself
I'm looking for a script to basically fix an mp3 directory structure from the abuse of WMP, which regularly decides to change all my Folder.jpg images from 500x500 to 200x200 (whether they are read only or not it seems)
As well as Folder.jpg I also have a copy of the album art named .jpg, which always uses the same name as the directory the album is in. E.g.
Rock\Artist A\Album ABC\Album ABC.jpg
Pop\Artist B\Album 123\Album 123.jpg
The folder depth varies, but the end node album directory and image naming convention is the same.
Is there a way to trawl the directory tree and wherever it finds a .jpg that has exactly the same name as it's parent directory, make a copy called Folder.jpg as RO and overwrite the any existing file?