Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1895693
  • 博文数量: 606
  • 博客积分: 9991
  • 博客等级: 中将
  • 技术积分: 5725
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-17 19:07
文章分类

全部博文(606)

文章存档

2011年(10)

2010年(67)

2009年(155)

2008年(386)

分类:

2008-07-30 21:47:50

  1. <html>      
  2. <head>      
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">      
  4. <title>jstitle>     
  5.   
  6. <SCRIPT language=JavaScript>      
  7. function Run(strPath)   
  8. {      
  9.     try      
  10.     {      
  11.      var objShell = new ActiveXObject("wscript.shell");      
  12.      objShell.Run(strPath);      
  13.     objShell = null;      
  14.     }      
  15.     catch(e)   
  16.     {   
  17.          alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确.')      
  18.     }      
  19. }      
  20. SCRIPT>      
  21.      
  22. head>   
  23.   
  24. <body onLoad="Javascript:Run('file:///C:/netbeans.exe');">   
  25. <a href="#" onclick="Run('file:///C:/netbeans.exe')">ESa>      
  26. <a href="C:\netbeans.exe">ES2222a>      
  27. body>        
  28. html>

转 载: http://hi.baidu.com/coolcat_police/blog/item/3ecc43d4f3da8307a08bb7e8.html

阅读(660) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~