![]() |
![]() |
| Home | What's New | Products | Download | Purchase | Support | About Us | Contact |
|
|
|
Legal Notices | Privacy Policy |
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:
|
|||||||||||
|
VShell, SecureCRT, SecureFX, Entunnel, CRT,
and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks
are the property of their respective owners. |