如何从浏览器启动应用程序? [英] How to launch an application from a browser?
问题描述
是否可以从浏览器启动应用程序?我不是在谈论从浏览器打开文件(比如用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的链接,该链接打开了已经填写了该IP地址的Microsoft RDP客户端(mstsc.exe)。
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屋!