Page 1 of 1

Splitting CHR files from a giant CHR file for use in project

Posted: Fri Jul 26, 2013 11:48 pm
by Hamtaro126
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?

Re: Splitting CHR files from a giant CHR file for use in pro

Posted: Sat Jul 27, 2013 1:04 am
by tokumaru
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: Select all

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.

Re: Splitting CHR files from a giant CHR file for use in pro

Posted: Sat Jul 27, 2013 6:01 am
by Hamtaro126
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!