Using System.diagnostic.process to Invoke external application

Jeetendra Panda

Newcomer
Joined
Jun 14, 2004
Messages
1
Hi there,

It would be really great, if anyone can help me in get the below code working.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="C:\\Program Files\\abctext.exe";

proc.StartInfo.Arguments="c:\\inetpub\\wwwroot\\testService\\fxDoc.txt C:\\helloworld.pdf 3 0";
proc.StartInfo.UseShellExecute=false;
proc.StartInfo.RedirectStandardOutput=true;
proc.Start();

I am trying to run text2pdf application from my ASP.Net program. This won't give any error, but does not convert the file as well.

Please let me know, if there is any other method/techniques to execute the command line argumenets from ASP.Net.

Appreciate your quick response.

Best Regards
Jeeten
 
Back
Top