|
|
||||||||||||||||||||
|
light speed a command line top 100 search
free external tools,
java sources
cpp sources
articles
|
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line or a Linux shell.
sfk partcopy infile offset length outfile [offset2] [-yes]
sfk partcopy infile -fromto startoffset endoffset outfile ...
reads length bytes from infile at specified offset,
writing them into another file. if offset2 is specified,
outfile is not created, but the bytes are used to overwrite
other bytes within the output file.
by default, the command simulates, checking file lengths
but not copying any data. add -yes to really copy contents.
length syntax:
100000 , 100k = 100000 bytes
2000000k , 2000m , 2g = 2 giga-bytes
options
-quiet do not print number of copied bytes.
-fromto use this if you don't want to specify offset
and length for the input, but a start and end
offset (with length being end minus start).
see also
sfk hexdump -offlen offset len infile
sfk hexfind infile -bin /hexvalues/
sfk hextobin
examples
sfk partcopy first.dat 10000 50 second.dat 500000
copies 50 bytes from first.dat at offset 10000 into
second.dat (which should exist) at offset 500000
sfk partcopy first.dat -fromto 0x2710 0x2950 second.dat
input start and end offset in hexadecimal numbers,
output file is created (no output offset given).
sfk is a free open-source tool, running instantly without installation efforts. no DLL's, no registry changes - just get sfk.exe from the zip package and use it (windows and linux binaries are included). read more about all sfk functions here.
|
|