|
- <script>
- function LaunchApp(AHUdb) {
- if (!document.all) {
- netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
- var file = Components.classes["@mozilla.org/file/local;1"]
- .createInstance(Components.interfaces.nsILocalFile);
- file.initWithPath(AHUdb);
- file.launch();
- return;
- }
-
- var ws = new ActiveXObject("WScript.Shell");
- ws.run(AHUdb);
- }
- </script>
- <a href="javascript:LaunchApp('C:\\TheFolder\\TheProgram.exe')">Click here to Execute your file</a>
复制代码 |
|