Here is a text on execution I wrote some time ago...
For Internet Explorer I would suggest you look really hard at Windows Scripting Host (WSH) at http://www.microsoft.com/scripting/default.htm?/scripting/windowshost/default.htm. Example:
<script language="vbscript"> Set WshShell = CreateObject("WScript.Shell") Sub runlink_onClick() WshShell.Run "c:\\WINNT\\Explorer.exe c:\\WINNT", 1, 0 End Sub </script>
and in the page have:
You will get the following when loading:
"An activex object on this page may be unsafe. Do you want to allow it to initialize and be accessed by scripts?"
One possibility is to use the PC Magazine programme WINCMD. This permits the launching of programmes from hyperlinks which target text files. The text files contain the launch command(s), and have a .wcm extension which is associated with the WINCMD programme. The WINCMD programme ensures execution of the launch command(s).
Create a dos batch file that calls your program:
@echo off C:\WINNT\Explorer C:\WINNT exit
Set your link to the bat file.
If using Netscape, you'll have to define a Helper appl for the .bat extension, perhaps command.com as a helper?
For just executing (probably without parameters - I had little time to dig out the old browsers you could do the following (courtesy of JCS):