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:
Set shell = CreateObject(“WScript.Shell”)
shell.Run “””C:\Program Files\Internet Explorer\IExplore.exe””http://www.vandyke.com”
Here’s the same thing in JScript:
var shell = new ActiveXObject(“WScript.Shell”);
shell.Run(“\”C:\\Program Files\\Internet Explorer\\IExplore.exe\”http://www.vandyke.com“);
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: