How can I run a program in a script?
You cannot run programs directly in an ActiveX script however if you have Microsoft's Windows Script Host (WSH) installed you can tell WSH to run it for you.
The following VBScript statements use WSH to start Internet Explorer with a command-line argument:
Here's the same thing in JScript:
Note, the Run() function uses whitespace to separate program names from possible command-line arguments. In order to deal with paths with spaces it is necessary to add extra quotes in both languages to make it clear.
For information and downloads related to WSH look for the "Windows Script Host" section at: