Purpose:Compress and encrypt batch files. See Batch File Compression for additional details.

 

Format:BATCOMP [/O /Q] InputFile OutputFile

 

InputFileA file to compress and/or encrypt.
OutputFileA file to hold the output from the command

 

/O(verwrite)

/Q(uiet)

 

File Selection

 

The input file must be specified explicitly (no wildcards).

 

File Completion Syntax:

 

The default filename completion syntax is: btm bat cmd dirs

 

Usage:

 

BATCOMP is a batch file compressor and encryptor. Compressed batch files run at approximately the same speed as uncompressed .BTM files. You may want to consider encrypting your batch files if you want to keep your code secret or prevent your users from altering them.

 

Large batch files will be reduced in size by at least a half. Much larger reductions are possible if you strip the batch file of all comments before compressing it. However, compressing a small file will not significantly reduce its size and might even cause it to grow.

If you do not specify an extension for OutputFile, it defaults to BTM. If OutputFile already exists it will not be overwritten unless /O is used.

 

The output BTM file will not be viewable, but it will run under TCC. The behavior and performance of the file should be the same as if it were run in its original source form as a .BTM file.

 

Compression is not effective for very small files and may even result in a  larger file.

 

Example:

 

Compress and encrypt the input file "MyBatch.btm" and write it to "Production.btm" (overwriting Production.btm if it already exists) :

 

batcomp /o Mybatch.btm Production.btm

 

Options:

 

/OForces overwriting of an existing OutputFile.

 

/QSuppresses all progress reports sent to STDOUT. Errors (sent to STDERR) are still shown.