GPATCH

GPATCH is a simple command line utility designed to alter a block of bytes in a file
Download

GPATCH Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Gammadyne Software
  • Operating Systems:
  • Windows All
  • File Size:
  • 188 KB

GPATCH Tags


GPATCH Description

GPATCH is a simple command line utility designed to alter a block of bytes in a file. Usage: First, specify the directory and filename of the file that is to be patched. Then, specify the /i switch, followed immediately by the 0-based index of where the data should be stored in the file. The actual data can be specified one of two ways: ■ The /s switch, immediately followed by the data, inside quotes. The data is expressed literally. ■ The /h switch, immediately followed by a string of hexadecimal pairs, inside quotes. Each hexadecimal pair corresponds to a single byte of data. Each pair can be separated by spaces, commas, dashes, or nothing at all. In addition, you may optionally specify the /n switch, immediately followed by the number of bytes that is to be deleted at the specified index before the data is inserted at the index. If this switch is omitted, this defaults to the length of the data, which has the end result of overwriting a section of the file without modifying its size. If the /n value is less than the length of data, the file will grow. Likewise, if the /n value is more, the file will shrink. If /n0 is specified, the data is effectively inserted into the file at the index. Notes ■ To append the data to the file, specify the /a switch instead of /i. ■ You may specify multiple /s and /h switches. The final data will be the concatenation of the data specified by each switch.


GPATCH Related Software