如何从浏览器访问本地安装的.exe? [英] How to access local installed .exe from browser?

查看:268
本文介绍了如何从浏览器访问本地安装的.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须访问不同的本地安装的.exe才能从浏览器中打开不同类型的文档。我希望在不妨碍文件安全的情况下实现这一目标。



我尝试下面的代码,它的工作但后来发现它是非常古老的方式,它也无法确保安全。



谢谢,

Pushkar



我有什么试过:



I have to access different local installed .exe to open different type of documents from browser. I want to achieve this without hampering security of documents.

I tried below code, its working but later found that it is very old way and it also can not insure security.

Thanks,
Pushkar

What I have tried:

<html>
  <body>
  <p>Click <a href="file:///C:\FolderToUpload\12.doc" class="navbar">here</a></p>
  </body>
</html>

推荐答案

代码在浏览器无法访问本地系统。您无法明确启动应用程序;您只能向浏览器发送具有特定MIME类型的文档,并让浏览器决定如何处理它。
Code running in the browser has no access to the local system. You cannot explicitly launch an application; you can only send the browser a document with a specific MIME type, and let the browser decide what to do with it.


这篇关于如何从浏览器访问本地安装的.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆