本文介绍了通过单击浏览器上的链接打开桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让用户在点击浏览器上的链接时,在他的桌面上打开某个软件,如上图所示.

I want to enable the user to open a certain software on his desktop when he clicks the link on the browser, as shown on the image above.

我知道安全问题,而且我假设用户在他的机器上安装了这个软件.实现这一目标的最佳方法是什么?

I am a ware of the security issue, and also I am assuming the user has this software installed on his machine. What is the best way to achieve this?

操作系统:windows.

OS: windows.

推荐答案

如果它只在你自己的机器上,你可以考虑注册一个 URI 方案,而不是让它链接到 http://something 你使用类似 openMyApp://blabla

If it's only on your own machine you could consider registering an URI scheme, so instead of having it link to http://something you use something like openMyApp://blabla

https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN

这篇关于通过单击浏览器上的链接打开桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 22:52
查看更多