File Cutter
Posted: Wed Jun 08, 2011 1:58 am
if you need a filecutter for uploading a small sample of your big archives and files you can use the following script for quickbms that creates 2 files of 1 megabyte each one:
I guess the moderators would like to put it sticky or add it to the help page because many users reported problems with the other existent file cutters so I'm sure this solution will avoid any problem.
let me know any suggestion or improvement
Code: Select all
# filecutter script for QuickBMS
# script for QuickBMS http://aluigi.org/papers.htm#quickbms
get SIZE asize
math CHUNKSZ = 0x100000
if SIZE <= CHUNKSZ
cleanexit
endif
math OFFSET = 0
get NAME filename
string NAME += "_"
string NAME += OFFSET
string NAME += "_"
string NAME += SIZE
log NAME OFFSET CHUNKSZ
math OFFSET = SIZE
math OFFSET -= CHUNKSZ
get NAME filename
string NAME += "_"
string NAME += OFFSET
string NAME += "_"
string NAME += SIZE
log NAME OFFSET CHUNKSZ
let me know any suggestion or improvement