Author: naresh126 | Posted on: 5/28/2009 8:27:36 AM | Views : 1359

 HI Everyone,
I am new to this community.I am developing a website in which there is button with which you can compile a given C# program Using Cmd.exe.I used
 
System.Diagnostics.Process.Start(@"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe",@"C:\VS\program.cs");
 this will only pop the Visual Studio by loading program.cs file and
System.Diagnostics.Process.Start(@"C:\Windows\System32\Cmd.exe",@"C:\VS\program.cs");

 this will jus pop cmd prompt but i want  to open cmd.exe by passin the program and Run commands as parameters so that it will Run the given program with visual Studio Command prompt.I dont want user to compile the program manually but i want the button itself compiles the program and shows him the output screen in cmd prompt or in a notepad(notepad becuase the programs are simple example programs).The function which i wanna write would look ...

Go to the complete details ...