如何通过我的Web服务运行.exe文件? [英] How to run .exe file by my Webservice?

查看:82
本文介绍了如何通过我的Web服务运行.exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重复:是否可以从网络运行可执行文件服务吗?

我有Web服务,并且我想通过此Web服务运行exe文件

I have Webservice, and I want to run exe file through this Webservice

Web服务和exe文件位于同一台计算机上

the Webservice and the exe file are on same computer

我该怎么办?

先谢谢

推荐答案

您可以使用System.Diagnostics.Process对象启动外部进程.

You can use the System.Diagnostics.Process object to start an external process.

编辑:

文档

使用一些高级功能的示例(输入/输出/错误重定向).它在VB中,但应该易于移植.

Example using some advanced features (input/output/error redirecting). It's in VB, but should be easy to port.

这篇关于如何通过我的Web服务运行.exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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