|Purpose:||Compress and encrypt batch files. See Batch File Compression for additional details.|
|Format:||BATCOMP [/O /Q] InputFile OutputFile|
A file to compress and/or encrypt.
A file to hold the output from the command
The input file must be specified explicitly (no wildcards).
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.