网页调用本地程序启动
2016-10-4 乱云飞 评论(0) 浏览(2175) 标签: 网页调用 网页运行程序 httb://
///////////////// httb.reg导入注册表 ///////////////// Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\httb] "URL Protocol"="c:\\httb.bat" @="httbProtocol" [HKEY_CLASSES_ROOT\httb\DefaultIcon] @="c:\\httb.bat,1" [HKEY_CLASSES_ROOT\httb\shell] [HKEY_CLASSES_ROOT\httb\shell\open] [HKEY_CLASSES_ROOT\httb\shell\open\command] @="\"c:\\httb.bat\" \"%1\"" ///////////////// httb.bat存放在C盘根目录 ///////////////// @echo off @title 翼展云本地应用程序调用 @mode con cols=60 lines=8 @color 0A set ifo=%1 set x= %ifo:~8,-2% echo. echo *************** 翼展云桌面 http://80c.cc *************** echo. echo 启动本机程序【 %x% 】 echo. cd / start %x% pause ///////////////// 网页调用 ///////////////// artDialog.open("httb://cmd",{width:1,height:1,resize:true,title:"启动命令行",time:0.1}); artDialog.open("httb://notepad",{width:1,height:1,title:"启动记事本",time:0.1}); <a href=httb://ping 192.168.1.1 -t>ping</a>//运行ping命令 httb://control.exe//启动控制面板 httb://gpedit.msc//启动组策略 httb://regedit//启动注册表