公司要求开发出浏览器一键调用本地应用(CRT,XFTP,XSHELL)并登录功能
1、本地应用调用思路
开发的web是否支持IE
1.1、IE ActiveX 通过调用控件js文件中编辑代码如下:
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run('cmd /k F:\\SecureCRT\\SecureCRT.exe /SSH2 /L root /P 22 /PASSWORD root 172.16.4.65 & exit' );
}
window.onload = function(){
RunFile();
}
</script>

最低0.47元/天 解锁文章
1912

被折叠的 条评论
为什么被折叠?



