Home
> Commands A-M
> Commands Ch-Cz
CSCRIPT
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Command-line-based script host.
Syntax
CSCRIPT
//?
CSCRIPT
[script_name]
[//B
| //I]
[//D]
[//E:engine]
[//H:host]
[//Job:xxxx]
[//Logo
| //Nologo]
[//S]
[//T:nnnnn]
[//X]
[script_arguments]
Parameters
- script_arguments
(NTXP)
- Command-line switches that are passed to the script.
Script_arguments are always preceded by one slash (/).
- script_name
(NTXP)
- Name of the script file, including the file name
extension and any necessary path information.
Switches
- //?
(NTXP)
- Displays available command parameters and provides
help for using them (the same as Cscript.exe with no
parameters and no script).
- //B
(NTXP)
- Specifies batch mode, which does not display alerts,
scripting errors, or input prompts.
- //D
(NTXP)
- Turns on the debugger.
- //E:engine
(NTXP)
- Specifies the scripting language that is used to
run the script.
- //H:host
(NTXP)
- Registers the default script host for running scripts.
The default is Wscript.exe.
- //I
(NTXP)
- Specifies interactive mode, which displays alerts,
scripting errors, and input prompts. This is the default
and the opposite of //B.
- //Job:xxxx
(NTXP)
- Runs the job identified by xxxx in the
script_name.
- //Logo
(NTXP)
- Specifies that the Windows Script Host banner is
displayed in the console window before the script runs.
This is the default and the opposite of
//Nologo.
- //Nologo
(NTXP)
- Specifies that the Windows Script Host banner is
not displayed before the script runs.
- //S
(NTXP)
- Saves the current command-prompt options for the
current user.
- //T:nnnnn
(NTXP)
- Specifies the maximum time the script can run
(in seconds). You can specify up to 32,767 seconds.
The default is no time limit.
- The time-out option prevents excessive execution
of scripts by setting a time limit. When execution time
exceeds the specified value, the script engine is
interrupted and stops the process.
- //X
(NTXP)
- Starts the script in the debugger.
Related
none.
Notes
none.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NTXP
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively