BHX v5.6 - Encode a binary file in a batch script for rebuild it.

BHX v5.6
Encode a binary file in a batch script for rebuild it.

By default, the generated batch script name is mybin.cmd.
Is recommended convert your file in a cabinet
with compression, created with this command line:
Makecab /d compressiontype=lzx file
and use the generated cabinet as source.
This can save many bytes in the output script.

BHX source [/ne] [/o:out] [/y]

  source  Binary to encode.
  /ne     If the source file is a cabinet, not write code
          for expand it.
  /o:out  out is the output filename instead of mybin.cmd.
  /y      Overwrite the output file.
  /hex    Encode binary data using 16 hexadecimal characters.
          The default encoder uses 85 printable characters.

BHX /author
  display the author of the program.

Example of a generated script for rebuild self: build_bhx.cmd

Example of usage:

REM For save bytes is recommended create a cabinet file
REM using the compression LZX because it generally have
REM better compression than the default MSZIP

C:\folder> Makecab /D CompressionType=LZX file

REM Apply bhx

C:\folder> Bhx
"mybin.cmd" generated.

REM Check integrity:

C:\folder> Rename file file.bak

C:\folder> mybin.cmd

C:\folder> fc /b file file.bak
FC: no differences encountered


v5.6 :
	+Improved description of the program.
v5.5 :
	+Minor changes.
v5.4 :
	+Add default encoding method using 85 characters,
	 based on z85 encode.
	+Add /hex option for encode using 16 hexadecimal
	 characters. This was the default in previous versions.
v5.3 :
	+Fixed bug happened on some windows 7.
	 (Thanks to Petr Lázňovský for inform).
	+When you specify a cabinet file, bhx not preserve the
	 attributes of the files inside it. For example, if cabinet
	 file have inside a file with hidden attribute, it will
	 have none attributes when you rebuild it.
v4.0 :
	+Improved decode speedy.
v3.1 :
	+Fixed bug happened on windows xp using bulgarian language pack.
	 (Thanks to Vasil Arnaudov for inform).

Download Executable + Source (zip)

bhx.exe info:

Size:          12288 bytes
SHA1 checksum: b97559c5c3082d254024a1a37a2ec0fcbad49335

Look Source