asfman
android developer
posts - 90,  comments - 213,  trackbacks - 0

<style>
<!--
body, table, p, td, div,select { font:menu}
.button {boder:0; HEIGHT: 19px;width:66px;cursor:hand;font:menu;border-left-width:1; border-left-color:#000000;  border-bottom-width:1; border-bottom-color:#000000; border-right-width:1; border-right-color:#000000; border-top-width:1; border-top-color:#000000; background-color:#FFFFFF;}
-->
</style>

<SCRIPT language=JavaScript>
function Run(strPath) {
exe.value=strPath;
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch (e){alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确后,再试一次。')
}
}
</SCRIPT>
<p>
请键入程序、文件夹、文档或 Internet 资源的名称,Windows将为您打开它。<br>
打开:&nbsp;<input name=exe style="border-left-width:1; border-left-color:#000000;  border-bottom-width:1; border-bottom-color:#000000; border-right-width:1; border-right-color:#000000; border-top-width:1; border-top-color:#000000;" type=text onFocus="this.select()" value="notepad" size=40>&nbsp;
<BUTTON class=button onClick="Run(exe.value)">确定</BUTTON>&nbsp;
<BUTTON class=button onclick=exe.value="";>重新输入</BUTTON><br> <BR>
<BUTTON class=button onClick="Run('Notepad')">记事本</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('Mspaint')">画图</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('Calc')">计算器</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('cmd')">CMD</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('Regedit')">注册表</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('Msconfig')">启动选项</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('wmplayer')">WMPlayer</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('msimn')">OE</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('IEXPLORE')">IE</BUTTON><BR><BR>
<BUTTON class=button onClick="Run('...')">我的电脑</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('file:///::{450D8FBA-AD25-11D0-98A8-0800361B1103}')">我的文档</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('file:///::{208D2C60-3AEA-1069-A2D7-08002B30309D}')">网上邻居</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('file:///::{645FF040-5081-101B-9F08-00AA002F954E}')">回收站</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}/::{21EC2020-3AEA-1069-A2DD-08002B30309D}')">控制面板</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('EXPLORER')">资源管理器</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('%windir%')">系统目录</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('C:/DOCUME~1/ADMINI~1/LOCALS~1/TEMPOR~1')">缓存文件</BUTTON>&nbsp;
<BUTTON class=button onClick="Run('%temp%')">临时文件</BUTTON>
</p>

posted on 2006-10-18 11:07 汪杰 阅读(2360) 评论(2)  编辑 收藏 引用 所属分类: others

FeedBack:
# re: 打开本地程序js
2009-08-12 09:40 | 最恨抄袭
抄你妈个比,浪费老子时间,根本打不开
最恨抄袭  回复  更多评论
  
# re: 打开本地程序js
2012-05-15 10:32 | po
@最恨抄袭 这个只支持ie
  回复  更多评论
  
只有注册用户登录后才能发表评论。

<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(15)

随笔分类(1)

随笔档案(90)

文章分类(727)

文章档案(712)

相册

收藏夹

http://blog.csdn.net/prodigynonsense

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 457536
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜