Try the below scripts. Note that the web browser must allow Javascript and ActiveX to run. Another version with input argument for the function call:
Archive for the ‘web’ Category
How to run WinMerge to comapre 2 files when triggering from a hyperlink click?
Posted in web on May 10, 2010 | Leave a Comment »
How to force opening a local HTML file by Internet Explorer?
Posted in web on May 10, 2010 | Leave a Comment »
Modify your HTML like below: Enjoy!
How can I run a program in a HTML script?
Posted in javascript, web on May 10, 2010 | Leave a Comment »
source: http://www.vandyke.com/support/securecrt/004.html 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: Dim shell Set shell = CreateObject(“WScript.Shell”) shell.Run “””C:\Program Files\Internet Explorer\IExplore.exe””http://www.vandyke.com“ Here’s the [...]