execute dos command using c#.net

Jul 6 2009 1:30 PM
Hi, im using c#.net 2005 to develop an application. in my app i have to execute an .exe file with some argument. let say the file name is abc.exe and arguments are 'argStr'. it normaly executes in dosprompt. i used the following code. System.Diagnostics.Process.Start("abc", argStr); it executes the command . but it shows the command prompt (cmd.exe) on the application. is there any way to not display the command prompt and read the output of the execution of the execution which is displayed in the dos prompts? Thank you. Anushka

Answers (1)