i would like to do an automated test system which will allow me to run a batch file automatically. right now the procedure is:
- run cmd.exe
- type in "antc"
i would like to have a button so that once the user clicks it, the above processes are ran automatically.
i have something done, which allows me to open up cmd.exe as shown below:
protected void Button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
process1.StartInfo.WorkingDirectory = Request.MapPath("~/");
process1.StartInfo.FileName = Request.MapPath("CMD.EXE");
process1.Start();
}
thanks and regards