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