How to run a .exe file using my Webservice?

Duplicate: Is it possible to run an executable from a web service?

Hello

I have a Webservice and I want to run an exe file through this Webservice

Webservice and exe file are on the same computer

How can i do this?

Thanks in advance

+3
source share
4 answers

Process.Start ()?

+3
source

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

EDIT

Documentation

An example of using some additional functions (input / output / error redirection). It is located in VB, but should be easily portable.

+3
source
Process.Start("path of the program");
+1
Process.Start("app.exe")

OR even better, wrap it in a Windows service, publish the schema for it, and use the async request for the bus.

0
source

Source: https://habr.com/ru/post/1709552/


All Articles