- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>jstitle>
-
- <SCRIPT language=JavaScript>
- function Run(strPath)
- {
- try
- {
- var objShell = new ActiveXObject("wscript.shell");
- objShell.Run(strPath);
- objShell = null;
- }
- catch(e)
- {
- alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确.')
- }
- }
- SCRIPT>
-
- head>
-
- <body onLoad="Javascript:Run('file:///C:/netbeans.exe');">
- <a href="#" onclick="Run('file:///C:/netbeans.exe')">ESa>
- <a href="C:\netbeans.exe">ES2222a>
- body>
- html>
转 载: http://hi.baidu.com/coolcat_police/blog/item/3ecc43d4f3da8307a08bb7e8.html
阅读(749) | 评论(0) | 转发(0) |