wscript
Run Windows Script Host programs in the graphical user interface (GUI). See also:
cscript. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/cscript.
- Set
cscript(CLI) orwscript(GUI) as the default interpreter to run Windows Script Host programs:
wscript //h:
- Run a script:
wscript
- Run script in the [i]nteractive or [b]atch mode (enable or suppress alerts, prompts, and scripting errors):
wscript //
- Show or hide the Windows Script Host logo before running (useful to get Host version / suppress outputs):
wscript
- Specify a custom execution engine to run the script (useful for using custom script filenames):
wscript //e:
- Set a [t]imeout for running a given script (in seconds):
wscript //t:
- Start the [d]ebugger and wait until a scripting error occurs:
wscript //d
- Start debugging from the first script line in an IDE (e.g., Visual Studio):
wscript //x
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
