SCRIPT |
Purpose: | Run a script using an Active Scripting engine |
Format: | SCRIPT [/E engine] [filename ...] |
engine | The name of the scripting engine |
Usage:
If you don't specify any arguments, SCRIPT will display the installed engines.
You can call internal TCC commands from any Active Scripting language using the tcommand() interface created by SCRIPT. For example, create a JavaScript file named testjs.js:
var d1 = "First Message";
var d2 = "echo Second Message";
var d3 = "dir /w";
TakeCommand.msgbox(d1);
TakeCommand.tcommand(d2);
TakeCommand.tcommand(d3);
You can then pass testjs.js to SCRIPT:
script testjs.js
See also the @SCRIPT variable function.
Options: