Windows Admin Scripting Little Black Book (Little Black Books (Paraglyph Press))
The Microsoft Script Encoder allows you to protect your scripts using a simple encoding scheme. The default supported file types are ASA, ASP, CDX, HTM, HTML, JS, SCT, and VBS. The basic syntax of the script encoder is as follows :
SCRENC inputfile outputfile
Here, inputfile is the file to encode and outputfile is the encoded result. Microsoft Script Encoder supports many command-line parameters, as shown in Table 6.
| Parameter | Description |
|---|---|
| /E extension | Specifies a known |
| extension | for unrecognized input file types |
| /F | Specifies to overwrite the input file with the encoded version |
| /L language | Specifies to use the scripting language Jscript or VBScript |
| /S | Specifies to work in silent mode |
| /X1 | Specifies not to include the @language directive in ASP files |