Purpose:Run a script using an Active Scripting engine

 

Format:SCRIPT [/E engine] [filename ...]

 

/E(ngine)

 

engineThe name of the scripting engine

 

Usage:

 

If you don't specify any arguments, SCRIPT will display the installed engines.

 

You can call internal TCC-RT 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:

 

/E If the script doesn't have a recognized extension (i.e., .vbs, .pls, etc.) you will need to specify the engine SCRIPT should use to execute the script.