Need a script / command dos for batch copy /

Microsoft Windows xp professional w/serv...
February 25, 2010 at 06:43:05
Specs: Windows XP, 2gb
Hi guys,
I need a script to copy files named "folder.jpg" (used for album display in windows) in multiple sub directories to the original directory with a different name: "ZuneAlbumArt.jpg"
I have no idea what the command might be.
Any help would be cool as!

See More: Need a script / command dos for batch copy /

Report •


#1
February 25, 2010 at 06:47:28
You need to clarify.


=====================================
Helping others achieve escape felicity

M2


Report •

#2
February 25, 2010 at 15:37:45
Oh sorry!

Hi guys,
I need a script / command / batch file for windows XP
that will to copy and rename files named already named as "folder.jpg".
folder.jpg is the actual file name used for album art display in windows.
The script needs to search In multiple sub directories for this file (folder.jpg) and make a copy of the file to the original directory renaming it to "ZuneAlbumArt.jpg"

I hope that is clear enough.

Thanks

N


Report •

#3
February 26, 2010 at 00:40:00
@echo off & setLocal EnableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/s/b/a-d folder.jpg') do (
ren "%%a" "ZuneAlbumArt.jpg"
)


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions

#4
February 26, 2010 at 07:01:17
Great stuff! Thanks a lot! I owe you 1.

Report •

#5
March 3, 2010 at 00:28:08
OK thats great,
but I dont want it to delete the original folder.jpg file, just create a new zunealbumart.jpg file. How can i change the script to do that (sorry for not stating that before)

Report •

#6
March 3, 2010 at 06:50:40
@echo off & setLocal EnableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/s/b/a-d folder.jpg') do (
copy "%%a" "ZuneAlbumArt.jpg"
)


Report •

Ask Question