User Guide
Chapter 7: Reusing Code 87
The following options are supported:
Note While it is possible to encode binary files with cfencode, it is not
recommended.
cfencode Command Line Options
Option Description
input file Name of the file you want to encode. cfencode will not process an
encoded file.
output file Path and filename of the output file.
Warning: If you don’t specify an output file name, a warning message
asks if you want to continue, in which case the encoded file will
overwrite the source file.
/r Recursive, when used with wildcards, recurses through subdirectories
to encode files.
/q Suppresses warning messages.
/h Header, allows custom header to be written to the top of the encoded
file(s).
/v Required parameter that allows encoding using a specified version
number. Use "1" for pages you want to be able to run on ColdFusion
3.x. Use "2" for pages you want to run strictly on ColdFusion 4.0 and
later.