Microsoft Script Encoder Script Encoder Introduction (3) All Chinese

Source: Internet
Author: User
Tags html encode include relative valid microsoft frontpage
Script Encoder Syntax


Describe
Encode the script source code so that it is not easily viewed or modified by the user.

Grammar
Screnc [/S] [f] [/XL] [/L deflanguage] [/e defextension] inputfile outputfile

Part of the Script encoder syntax is as follows:

Partial description
/s optional. Switch that specifies that the script encoder's working state is static, resulting in no screen output. If omitted, the default is to provide redundant output.
/f is optional. Specifies that the input file will be overwritten by the output file. Note that this option destroys your original input source code. If omitted, the output file is not overwritten.

/XL is optional. Specifies that @language pseudo directives are not added to the. Top of ASP file. If omitted, @language instructions are added to all. ASP file.
/l Deflanguage Optional. Specifies the default scripting language (jscript® or VBScript) that is used during the encoding process. The script block in the encoded file, if it does not contain a language attribute, is considered written by the specified language. As omitted, JScript is the default language for HTML pages and Script applet, and VBScript is the default language for dynamic Web pages. For normal text files, the default scripting language is determined by the file name extension (. js or. vbs).
/e Defextension Optional. Associates an input file with a specific file type. This switch is used when the input file extension does not clearly display the file type, that is, when the input file name extension is not a recognized extension, but the file content can be classified as an identifiable type. This option is not a saved value. If a file with an unrecognized extension is encountered and the option is not specified, the script encoder cannot process the unrecognized file. The recognizable file extensions are ASA, ASP, CDX, HTM, html, JS, SCT, and VBS.
Inputfile is required. The name of the file to be encoded, including any required path information relative to the current directory.
OutputFile is required. The name of the output file to generate, including any required path information relative to the current directory.


Description
The following are four types of files that the scripting writer can handle:
Asp. This format consists of a text Dynamic Web page that contains valid HTML and embedded script blocks in the <SCRIPT> ... </SCRIPT> tag or <% ...%> tag. Applications that use this format include microsoft®internet information Services (IIS). The recognized file name extension has. asp,. Asa and. CDX.
Html. The format consists of a text file that contains valid HTML and embedded script blocks. Applications written using this script format include Microsoft frontpage®, Microsoft®visual interdev™, and all virtual Web designers and browsers. The recognized file name extension has. htm and. html.
Plain text. The format consists of text files that contain only scripts and no two-sided markup. Applications written using this script format include windows®scripting Host (WSH) and microsoft®outlook®. The recognized file name extension has. js and. vbs, which, after encoding, become. JSE and. Vbe.
Script applet. The format consists of a text file that contains a valid script applet in the <SCRIPT> ... </SCRIPT> tag. The recognized file name extension has. SCT and. WSH.
Example
The following is an example of using a scripting encoder and a simple explanation of its results:
Encode input file test.html, generate output file encode.html, use:

Screnc test.html encode.html

Encodes the input file test.htm and overwrites the input file with the encoded output file, using:
screnc/f test.htm

All in the current directory. The ASP file is encoded and the encoded output file is placed in the C:\Temp, using:
Screnc *.asp C:\Temp

All in the current directory. The ASP file is encoded and the encoded output file is placed in the C:\Temp, using:
screnc/e ASP *.* C:\Temp

Encodes the input file test.htm and generates an output file encode.htm to ensure that script blocks that do not specify language properties use VBScript, using:
screnc/l VBScript test.htm encode.htm

Encodes all script applet files in the current directory, overwriting the files with encoded files without information display, using:
SCRENC/S/F *.SCT



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.