How could you launch a vb script in AE, i've tried to do this :
var vbsFile = new File(pathVbsFile);
But it doesn't work...
Thanks in advance
Find out why the . goes before the /
Moderator: Paul Tuersley
2 posts • Page 1 of 1
Check page 169 of CS3 (+) scripting guide:
etc.System callSystem() method
system.callSystem (cmdLineToExecute); Description
Executes a system command, as if you had typed it on the operating systemâ€™s command line. Returns whatever the system outputs in response to the command, if anything.
In Windows, you can invoke commands using the / c switch for the c m d . e x e command, passing the command to run in escaped quotes (\ " . . . \ " ). For example, the following retrieves the current time and displays it to the user:cmdLineToExecute
Code: Select all
var timeStr = system.callSystem("cmd.exe /c \"time /t\""); alert("Current time is " + timeStr);
A string containing the command and its parameters