nesdev.com
http://forums.nesdev.com/

Splitting CHR files from a giant CHR file for use in project
http://forums.nesdev.com/viewtopic.php?f=21&t=10323
Page 1 of 1

Author:  Hamtaro126 [ Fri Jul 26, 2013 11:48 pm ]
Post subject:  Splitting CHR files from a giant CHR file for use in project

Besides the file splitters that are already there, I want to keep the CHR extentions intact, So I need a new file splitter.

Instead of ''GAMENAME.(number)'' ,etc. I want to know how to split it like ''GAMENAME_(number).CHR''

If it is not that hard to make that happen, is anyone is up to doing it?

Author:  tokumaru [ Sat Jul 27, 2013 1:04 am ]
Post subject:  Re: Splitting CHR files from a giant CHR file for use in pro

Can't you just make a batch file to rename the files to the format you want? A quick online search suggests that this might work:

Code:
for %%f in (GAMENAME.*) do call:renamer %%f
goto:done

:renamer
set filename=%1
ren %1 %filename:.=_%.CHR

:done

Put this in a batch file in the same folder as the split files and double click it. You could even make GAMENAME a parameter instead of hardcoding it in the file, so that you can automate the process.

Author:  Hamtaro126 [ Sat Jul 27, 2013 6:01 am ]
Post subject:  Re: Splitting CHR files from a giant CHR file for use in pro

Thanks, Just what I needed!

I also think it's a bit of an oversight on my part, I did not look enough, So I'll do better to search next time!

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/