从浏览器中启动应用程序 [英] Launch application from a browser

查看:583
本文介绍了从浏览器中启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能推出从浏览器的应用程序?我不是在谈论从浏览器中打开一个文件(如打开使用Adobe Reader PDF文件),而是打开了安装在用户的计算机上的应用程序的新(空白)实例。

Is it possible to launch an application from a browser? I am not talking about opening a file from a browser (like open a PDF with Adobe Reader), but rather opening a new (blank) instance of an application that is installed on the user's machine.

假设的情况:用户浏览一个网站,列出了可通过RDP来管理计算机。他点击一个链接到192.168.1.10上,该链接打开微软RDP客户端(使用Mstsc.exe)与IP地址已经填写。

Hypothetical situation: User browses a website that lists computers that can be managed via RDP. He clicks on a link to 192.168.1.10, that link opens Microsoft RDP client (mstsc.exe) with that ip address already filled out.

我严格谈论的Windows的宇宙。

I am talking strictly about Windows universe.

时的那个东西,甚至是可行的ActiveX和IE之外吗?

Is that thing even doable outside of ActiveX and IE?

是否明智在IE中使用ActiveX尝试呢?

Is it wise to attempt this in IE with ActiveX ?

非常感谢,

推荐答案

您不能真正启动应用程序的真正意义。您可以根据指示要求用户打开一个文档(即PDF)和Windows会尝试使用默认的应用程序的文件类型。许多应用程序有办法做到这一点。

You can't really "launch an application" in the true sense. You can as you indicated ask the user to open a document (ie a PDF) and windows will attempt to use the default app for that file type. Many applications have a way to do this.

例如,你可以保存RDP连接为.rdp文件。把您的网站的链接,这样的事情应该允许用户向右发射到RDP会话:

For example you can save RDP connections as a .rdp file. Putting a link on your site to something like this should allow the user to launch right into an RDP session:

<a href="MyServer1.rdp">Server 1</a>

这篇关于从浏览器中启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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