| SCRIPT |
| Objet : | Exécuter un script utilisant un moteur Active Scripting |
| Format : | SCRIPT [/E moteur] [nom de fichier...] |
| engine | Nom du moteur de script |
Utilisation :
Si vous ne spécifiez aucun argument, SCRIPT affichera les moteurs installés.
Vous pouvez appeler des commandes internes TCC à partir de n'importe quel langage Active Scripting en utilisant l'interface tcommand() créée par SCRIPT. Par exemple, créez un fichier JavaScript nommé testjs.js:
var d1 = "First Message";
var d2 = "echo Second Message";
var d3 = "dir /w";
TakeCommand.msgbox(d1);
TakeCommand.tcommand(d2);
TakeCommand.tcommand(d3);
Vous pouvez ensuite passer testjs.js à SCRIPT :
script testjs.js
Voir aussi la fonction @SCRIPT.
Options :