如何从本地主机上运行的网页启动可执行文件?

发布于 2024-07-14 15:15:39 字数 400 浏览 5 评论 0原文

我有一个托管 Webcontrol (IE) 的应用程序,并使用 Casini 在本地主机上运行。 我用它来运行 CruiseControl.NET(请参阅 http://www.codeplex.com/ccnetbuildstation 了解应用程序)。

在自定义 CruiseControl.NET 报告中,我想启动其他应用程序,例如 Visual Studio。

知道如何从网页启动可执行文件而无需安装额外的应用程序吗? 我目前不需要安装任何东西来使用我的应用程序,该应用程序由自定义表单应用程序、CruiseControl.NET 和 Cassini 3.5 组成

I have an application that hosts a webcontrol (IE) and runs on localhost using Casini. I use it to run CruiseControl.NET (See http://www.codeplex.com/ccnetbuildstation for the app).

Within custom CruiseControl.NET reports I would like to start other applications like Visual Studio.

Any idea how I can launch an executable from a web page without having to install an extra application? I currently have no requirement to install anything to use my application which consists of a custom forms app, CruiseControl.NET and Cassini 3.5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心如荒岛 2024-07-21 15:15:39

我不熟悉 CruiseControl.NET,但如果它只是在返回网站的网络服务器中运行的某种网络服务器/应用程序,它不能(也不应该)直接运行可执行文件,但是,我可以想到 3 种方法尽管如此,还是这样做:

  1. 编写一个小型启动器应用程序,在应用程序应该运行时下载该应用程序,但您必须单击“打开”,“我确定”,“是的,我知道,不是安全区,无论如何运行它”。 它不太舒服,但它适用于所有浏览器。
  2. 编写一个程序,注册一个协议处理程序(如 run://something.exe)并执行指定的文件。
  3. 获取一个执行可执行文件的浏览器插件,我发现的第一件事是 LaunchInIE,配置看起来有点乱,但似乎可以满足您的要求。

I'm not familiar with CruiseControl.NET, but if it's just some kind of webserver/application running in a webserver returning websites, it can't (and shouldn't) run executables directly, however, I can think of 3 ways of doing this nevertheless:

  1. Write a small launcher application that gets downloaded when the application should be run, but you have to click on "Open", "I'm sure", "Yeah, I know, not a safe zone, run it anyway". It isn't comfortable, but it works in all Browsers.
  2. Write a program that registers a protocol handler like run://something.exe and executes the specified file.
  3. Get a browser plugin that executes the executable, the first thing I found is LaunchInIE, the configuration looks a bit messy but it seems to do what you want.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文