是否可以从Web服务运行可执行文件? [英] Is it possible to run an executable from a web service?

查看:83
本文介绍了是否可以从Web服务运行可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web服务,我想从其中调用一个.exe文件.

I have a web service and I would like to call an .exe file from within it.

这可能吗?如果是这样,怎么做?

Is this possible? If so, how is it done?

推荐答案

我已经完成了WCF中的c#3.5.您可以从Web服务运行exe.该exe将在服务为主机的计算机上运行,​​并已与用户一起配置了该服务.您只需编写普通的 Process.Start(. ..)代码.

I have done that is c# 3.5 with WCF. You can run a exe from a web service. The exe will run on the machine the service is host and with the user the service has been configured. You only have to write a normal Process.Start(...) code.

因此答案是可以的,当然,exe将在Web服务主机而非客户端上运行.如果您需要更多详细信息,请在问题中更具体.

So the answer is yes you can and, of course, the exe will run on the web service host and not the client. If you need more details, be more specific in your question.

这篇关于是否可以从Web服务运行可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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