VBS SCRIPT Daquan 2

Source: Internet
Author: User

The difference between WScript and cscript 
Windows run, WSCRIPT, command line run, Cscrip;
cscript because the output is placed in the console so that it can be redirected to facilitate program invocation
WScript directly with the window output for debugging programs and writing gadgets under Windows without CMD, the output of CScript will blink. In most cases, the options listed in the following table apply to WScript.exe and CScript.exe. Exceptions are commented.

Parameter description
B batch processing mode; Hide user hints and script errors displayed on the command line. The default mode is interactive mode.
D Open the debugger.
E:engine executes the script with the specified scripting engine.
H:cscript or//H:WScript registers CScript.exe or WScript.exe as the default application to run the script. If not specified, WScript.exe is assumed to be the default application.
I default. interactive mode; Allows user prompts and script errors to be displayed. Contrary to batch mode.
Job:<jobid> run the specified JobID from the. wsf file.
Logo default. Displays the title. Contrary to nologo.
Nologo prevents the execution title from being displayed at run time. The default setting is logo.
S saves the user's current command-line options.
T:NN Enable timeout: The maximum number of seconds a script can run. The default setting is unrestricted. The T parameter prevents excessive script execution by setting a timer. When the execution time exceeds the specified value, CScript interrupts the scripting engine with the Iactivescript::interruptthread method and terminates the process.
U is used for Windows NT and Windows 2000, forcing the command line to output in Unicode format. CScript cannot decide whether to export in Unicode or ANSI, and the default is ANSI.
X start the program in the debugger.
//?

VBS SCRIPT Daquan 2

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.