Jump to content
LaunchBox Community Forums

One image for multiple roms....

Recommended Posts

I'm using a BB theme that shows game media, tapes, carts etc. I have 1535 Amstrad CPC roms but only 31 tape images. For all the roms missing a tape I want to show this image....

TAPE.thumb.png.fa529919d90799657aa968be432ed7d8.pngIs there a simple way of doing this? apart from copying and editing each one individually?

Cheers :)

Link to post
Share on other sites

In my oh-so-Joe way, I just had to figure out how to do this. 😊

@Echo Off & SetLocal EnableExtensions
pushd D:\temp\roms
For /F "tokens=*" %%I IN ('dir /a-d /b *.cpc') DO (
	copy "D:\temp\generic_tape.jpg" "d:\temp\new\%%~nI.jpg"

Line 2:   Change D:\temp\roms to your roms folder location.

Line 3:   Change .cpc to your roms actual file extension. If you have .cpc and .dsk, you'll have to run it twice changing the extension (or copy & paste line 3, 4, 5 and changing the extension respectively).

Line 4:  Change the locations of the image you want to use and where you want to put them. If your image is .png, be sure to change the last .jpg.


  • Like 1
  • Unusual Gem 1
Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...