Hello,
I need to essentially make a command line tool available via a web interface. This tool would need to be run ON the web server, not the client machine.
e.g.: someCommand.exe -aSwitch param1 param2
The tool will be in a windows integrated auth web app on an intranet. I have not had to do anything like this before, so I want to find out how others handle this, what is the recommended best practice?
a quick google first showed someone using system.diagnostic.process... so to start playing I did something like this, just to see if it works, it does:
Process p = new Process();
p.StartInfo = new ProcessStartInfo("cmd.exe");
p.Start();
Response.Write("DONE");
Response.Write("ID: " + p.Id.ToString());
Response.Write("Handle: " + p.Handle.ToString());
p.WaitForExit(1000 * 60);
Response.Write("Exit Code: " + p.ExitCode.ToString());
I won't be running cmd.exe, that's just to test with. The actu ...
Go to the complete details ...