Wscript vs cscript

Source: Internet
Author: User
Wscript Parameters

//BSpecifies the batch processing mode, which does not display alarms, script errors, or input prompts.

// DStart debuggingProgram(Avtive debugging).

// E:EngineSpecifies the engine used to run the script.

// H: cscriptRegister cscript.exe as the default Script Host for running the script.

// H: wscriptRegister wscript.exe as the default Script Host for running the script. This is the default setting.

// ISpecifies the interaction mode, which displays alerts, script errors, and input prompts. This is the default value. The opposite value is// B.

// Job:IdentifierRun the. WSF script fileIdentifierJob ID.

// LogoSpecifies that the Windows Script Host banner is displayed on the console before the script runs. This is the default value. The opposite value is// Nologo.

// NologoSpecifies that the Windows Script Host banner is not displayed before the script is run.

// SSave the current command prompt options of the current user.

// T:NumberSpecifies the maximum time (in seconds) that a script can run ). You can specify a maximum of 32,767 seconds. The default value is no time limit.

// XStart the script in the debugging program.

 

* Note: file extension must be enabled.

Script Parameters cannot be specified if no script is specified.

Windows Script files usually have the following file extensions:. WSF,. vbs,. js.

 

Cscript

Parameters andWscriptSame, but the following parameter is added:

// U

Specify Unicode as the encoding format for the redirection input and output from the console.

 

A script file with a suffix. vbs double-click and execute it in windows. Then, the system automatically calls an appropriate program to explain and execute it. This program is Windows Scripting host, the program execution file name is wscript.exe default (if it is under the command line, it is cscript.exe ).

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.