Releases » Command Line » bite
Copies a number of bytes from an input file to an output file.
Supports decimal and hexadecimal parameters.
bite

Notes:

First released: 2004
 
Copies a number of bytes from <infile> to <outfile>.
If [size] is specified, copies [size] bytes.
If [size] is not specified, copies the rest of the file starting at <offset>.
Both <offset> and [size] can be decimal, or hexadecimal.
Hexadecimal values must begin with '0x' or end with 'h', or 'H'.

Usage: bite <infile> <outfile> <offset> [size]

Examples:
  bite in.dat out.dat 1024
  bite in.dat out.dat 1024 128
  bite in.dat out.dat 1024 0x1234
  bite in.dat out.dat 0x3039 1234h
  bite in.dat out.dat 400h 80h

Sets errorlevel 1 on error, 0 on success.
 

Downloads:

bite-121113.zip (37 kB)  13 ½ years ago