credit: http://www.learnqtp.com/ways-to-launch-your-application/
- Create a “WScript.shell” object.
- Use the “run” object to launch the application. If the path to your executable contains spaces, use Chr(34) to ensure the path is contained within double quotes.
- When done, set the shell object to nothing to release it.
Example:
- Dim oShellSet oShell = CreateObject ("Wscript.shell")'
- 'Example 1 - run a batch file:
- oShell.run "F://jdk1.3.1/demo/jfc/SwingSet2.bat"
- 'Example 2 - run a Java jar file:
- oShell.run "java -jar F://jdk1.3.1/demo/jfc/SwingSet2/SwingSet2.jar"
- 'Example 3 - launch Internet Explorer:
- oShell.Run Chr(34) & "C://Program Files/Internet Explorer/IEXPLORE.EXE" & Chr(34)
- Set oShell = Nothing