ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Jul 22, 2018 8:10 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Oct 13, 2015 12:54 pm 

Joined: Tue Oct 13, 2015 12:35 pm
Posts: 2
For example:
1.bin - >
2.bin - > new.bin
3.bin - >
I want to merge these three files into one file, and I know it can be combined with "get TMP long" and "put TMP long" to combine these three files to a file.But in fact, I'm going to merge a lot of files, and the OFFSET and SIZE of each file is recorded in another file. If it is in accordance with the above order, the efficiency is too slow.

Is there a direct command to write a file to a new file?


Top
   
PostPosted: Tue Oct 13, 2015 1:11 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8478
The basic steps to do that are:
Code:
get SIZE asize  # takes the size of the current file
append # enable the append mode for concatenating them
log "new.bin" 0 SIZE
append # disable concatenation (not necessary if its there are no other operations)

With those few lines you have a script that you can use on all the files you want to concatenate.
For example when you launch quickbms with double-click, select this script, then select all the files you want to concatenate and then the output folder.
It should work very well, try it.

Otherwise I have a command-line tool called bincat.


Top
   
PostPosted: Tue Oct 13, 2015 1:54 pm 

Joined: Tue Oct 13, 2015 12:35 pm
Posts: 2
aluigi wrote:
The basic steps to do that are:
Code:
get SIZE asize  # takes the size of the current file
append # enable the append mode for concatenating them
log "new.bin" 0 SIZE
append # disable concatenation (not necessary if its there are no other operations)

With those few lines you have a script that you can use on all the files you want to concatenate.
For example when you launch quickbms with double-click, select this script, then select all the files you want to concatenate and then the output folder.
It should work very well, try it.

Otherwise I have a command-line tool called bincat.


Woo~ thanks, in packing,
look like fast than before.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited