FChop – Script driven file grabbing utility
This program is free for private non commercial use
Use at Your own risk
The author is not responsible for any damages and/or data loss
By downloading these programs You accept this!
FChop 2.1 03.Mai.2005
-----------------------
Should be useful for file splitting, joining, merging, patching....
Usage:
FChop script_file => process 'script_file' default: 'FChop.job'
FChop con => process commands 'typed in' / end with <Ctrl-Z>
FChop /c => display list of commands which could be used
for scripting
Comments & bug reports:
-----------------------
[email protected]
Command Summary:
----------------
:Read in.ext ; open 'in.ext' for reading
:ReadB in2.ext ; as above: open 2nd source file for reading
:Write out.ext ; open 'out.ext' for writing
:Create out.ext ; open 'out.ext' for writing
; existing file will be truncated to lenght 0
:Wpos {end}{+/-}{offset}; position file pointer for writing to 'offset'
; preceding '+' or '-' means 'from current position'
; 'end +' or 'end -' means from 'end of file'
:Rpos {end}{+/-}{offset}; as above: for reading
:RposB {end}{+/-}{offset}; as above: for reading 2nd source file
:Copy {max_size} ; copy until end of file (or optional 'max_size')
:CopyB {max_size} ; as above: copy from 2nd source file
:From hex_pattern ; set read pointer to 1st occurrence of 'hex_pattern'
; will point to end of file if not found
:FromB hex_pattern ; as above: for reading 2nd source file
:UpTo hex_pattern ; copy until 'hex_pattern' is encountered excluding
; 'hex_pattern' itself
:UpToB hex_pattern ; as above: for reading 2nd source file
:Fill hex_pattern ; write 'hex_pattern' to output file
:SkipDup {distance} ; can only be used after a 'copy' smaller 8K byte
; will search (an optional 'distance') for a duplicate
; of the last copied block an move read pointer behind
:Repeat {n} command(s) ; repeat 'command(s)' (optional 'n' times)
; 'commands' will be processed from left to right
; read/write filename in this line will be counted up
:System DOS-command ; execute DOS-command
; no more internal commands on the same line will be recogniced
Number Format: 1G = 1024 M = 1048.576K = 0x4000.0000
-------------- '.' ignored / for better readability only
Hex Pattern Format: 000001ba = 00000.1.ba
------------------- hex digits are processed as pairs from left to right
'.' and blanks for better readability only
no byte swapping / no word/double word conversion