如何在asp.net中调用exe文件 [英] how to call exe file inside asp.net

查看:140
本文介绍了如何在asp.net中调用exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
如何将e-speaking.exe文件调用到asp.net页面中

hi!
how to call e-speaking.exe file into a asp.net page

推荐答案

阅读此-> http://forums.asp.net/t/1103055.aspx/1 [ ^ ]
Read This -> http://forums.asp.net/t/1103055.aspx/1[^]


这个问题已经发布了很多时间.如果您可以先将它们连接起来,那就太好了.我昨天已经回答了相同类型的问题.

如何在网络表单点击事件上调用窗口表单 [
This question has been posted a lot of time. It would have been great if you can sreach them first. i have already answered the same type of question yesterday.

how to call window form on web form click event[^]

execute an windows application.
 using System.Diagnostics;
 
Process.Start("example.exe");



此代码将在服务器上执行,并且如果希望exe在服务器上并且仅在服务器上运行,则该代码.

如果您希望在这种情况下在客户端计算机上执行一些代码,则可以在Javascript中使用ActiveX对象.



this code will execute on server and it iff expect that the exe is at server and will run on server only.

If you wish to execute some code on clients machine in that case you can use ActiveX Objects in Javascript.

function runWinZip() {
var shell = new ActiveXObject("WScript.shell");
shell.run("winzip.exe");
}
 
<input type="button" name="button1" value="Run Winzip" onclick="runWinZip()" />



确保您的exe路径在任何地方都是正确的.



Make sure your path of exe is correct every where.


使用Process.Start方法....

http://msdn.microsoft.com/en -us/library/system.diagnostics.process.start(v = vs.71).aspx [
Use Process.Start Method....

http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start(v=vs.71).aspx[^]


这篇关于如何在asp.net中调用exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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