Help with a script!

Soldato
Joined
14 Mar 2005
Posts
16,998
Location
Here and There...
I need a script that will do the following.

-Delete all the JPG's in every folder on a drive EXCEPT 'Copy of Folder.JPG'
-then make a copy of 'Copy of Folder.JPG' called Folder.jpg in each folder.

I'm sure it's pretty straight forward and I've done some similar stuff before but was wandering of anyone had anything which would do the job already.

For the inevitable question of why, thats simple because it is impossible to prevent Windows Media Player occasionally overwriting my custom Album art and replacing them manually is boring.
 
Completely forgot I started this thread! Thanks for the reply!

I've just had recourse to use it, bloomin windows media player and doing just as it pleases!

What I forgot to specifiy in my request was that all the JPG's in the folders that I need to delete are hidden files can anyone tell me how to change the first command so it works on hidden files?
 
Blast from the past I know!

Just wanted to say thanks for the above script, I had cause to use it yesterday and it worked perfectly apart from not getting on with directory names that contained [] which have now all been removed!
 
Back
Top Bottom