Following is my code to run a command from aspx page using c#:
string strcmd = "/k" + @"cd: C:\GWATS\bin\&&" + "waft_exe";
System.Diagnostics.Process.Start("cmd.exe", strcmd);
Response.Redirect("./result.aspx");
This is working fine. But I want to get the output from the cmd to my aspx page. Can anyone give me coding for this? I am working on ASP.NET just for the past 1 week, hence I dont have any idea of this. So please give me a working code for this?