READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Help me extract files with string in *.cut

Get help on any and all audio formats, or chip in and help others!
Post Reply
timeman
n00b
Posts: 17
Joined: Sat Oct 01, 2016 12:31 pm
Has thanked: 1 time

Help me extract files with string in *.cut

Post by timeman » Wed Jun 19, 2019 9:49 am

Here is a package contain multi WMSF files

0120.cut

Image
yeah, just as the image, there are 5 WMSF files in the package.
-----------------------------point
I just want to split the whole package 0120.cut to 5 files with WMSF headers...
Like: 0120.cut -> 1.WMSF & 2.WMSF & ....
-----------------------------point
notice: Please DO NOT TELL ME split by size 0x5538h, it's just coninsistance in this file,
I have multiple *.cut file like this with different size.

So, i need a batch file or other method.
Woud anyone help me ?
Any help will be greatly appreciated!!!!! :o

timeman
n00b
Posts: 17
Joined: Sat Oct 01, 2016 12:31 pm
Has thanked: 1 time

Re: Help me extract files with string in *.cut

Post by timeman » Wed Jun 19, 2019 9:49 am

@Acewell

User avatar
DKDave
veteran
Posts: 87
Joined: Mon May 06, 2019 6:07 pm
Has thanked: 1 time
Been thanked: 24 times

Re: Help me extract files with string in *.cut

Post by DKDave » Wed Jun 19, 2019 5:08 pm

Try this BMS script, it should do the job:


# .cut file extractor
# By Dave, 2019

set OFFSET 0
set COUNT 1
get FSIZE asize

DO
GOTO OFFSET
GET MISC1 long
GET SIZE long
REVERSELONG SIZE
SET FILENAME COUNT
STRING FILENAME + ".WMSF"

LOG FILENAME OFFSET SIZE

MATH OFFSET + SIZE
MATH COUNT + 1

WHILE OFFSET < FSIZE
"Each person is born with their fate written into their own genetic code. It's unchangeable, immutable. But that's not all there is to life." - Dr. Naomi Hunter

timeman
n00b
Posts: 17
Joined: Sat Oct 01, 2016 12:31 pm
Has thanked: 1 time

Re: Help me extract files with string in *.cut

Post by timeman » Thu Jun 20, 2019 3:20 am

DKDave wrote:
Wed Jun 19, 2019 5:08 pm
Try this BMS script, it should do the job:


# .cut file extractor
# By Dave, 2019

set OFFSET 0
set COUNT 1
get FSIZE asize

DO
GOTO OFFSET
GET MISC1 long
GET SIZE long
REVERSELONG SIZE
SET FILENAME COUNT
STRING FILENAME + ".WMSF"

LOG FILENAME OFFSET SIZE

MATH OFFSET + SIZE
MATH COUNT + 1

WHILE OFFSET < FSIZE

OMG, Thank u So much for your perfect job!!!
It did work for me, Thanks !! :]
Maybe i need to learn more about quickbms!!
Thank you DKDave, You have been a great help!!! :]

Post Reply