如何从网页 (asp.net) 启动 EXE [英] How to launch an EXE from Web page (asp.net)

查看:50
本文介绍了如何从网页 (asp.net) 启动 EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个内部 Web 应用程序,我们希望其中的网页包含指向多个 Win32 EXE 实用程序的链接.EXE 是由我们信任和制作的.(不关心它是否询问是否可以运行或保存).我尝试了仅在本地工作的直接链接(例如 C: otepad.exe).(这将是网络上的共享).试过 File:///并没有奏效.IE7 是需要的浏览器.

This is an internal web application where we would like the Web pages to contain links to several utilities that are Win32 EXE. The EXEs are trusted and produced by us. (don't care if it asks if its ok to Run or Save). I tried direct link (e.g. C: otepad.exe) which works locally only. (This will be a share on the network). Tried File:/// and did not work. IE7 is the browser needed.

推荐答案

怎么样:

<a href="\DangerServerDownloadsMyVirusArchive.exe" 
  type="application/octet-stream">Don't download this file!</a>

这篇关于如何从网页 (asp.net) 启动 EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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