D
Dmitri Shvetsov
Hi,
Can I start an external process from the Web Service?
I'm using a code, compiler keeps silence, compiles ok and starts the
project. When I trace in Debugger it doesn't start an external process.
That's strange for me. I understand that it should be a new shell, but why I
can't start it? Is it need to have a Windows application to start an
external process? I created a very long batch files and a complicated
script to work with the database using several external utilities, but I
can't call this batch files. How can I do that at all?
private int RunExecutable(string sName, string sOption){
Process process = new Process();
process.StartInfo.FileName = sName;
process.StartInfo.Arguments = sOption;
try{process.Start();}
catch{return S_Exclusion;}
process.WaitForExit();
return process.ExitCode;
}//
Regards,
Dmitri
Can I start an external process from the Web Service?
I'm using a code, compiler keeps silence, compiles ok and starts the
project. When I trace in Debugger it doesn't start an external process.
That's strange for me. I understand that it should be a new shell, but why I
can't start it? Is it need to have a Windows application to start an
external process? I created a very long batch files and a complicated
script to work with the database using several external utilities, but I
can't call this batch files. How can I do that at all?
private int RunExecutable(string sName, string sOption){
Process process = new Process();
process.StartInfo.FileName = sName;
process.StartInfo.Arguments = sOption;
try{process.Start();}
catch{return S_Exclusion;}
process.WaitForExit();
return process.ExitCode;
}//
Regards,
Dmitri