D
dave
I've been experimenting with a couple of things, but
basically I want to call a batch file from (ASP.NET C#)
upon a button click, execute then exit. Unfortunately my
batch code isn't executing.I would love to put a status
bar in here too while my batch is executing. Please help
Here's the code
....
Process p = new Process();
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName
= "C:\\P4Root\\applications\\..some_app\\debug\\build.bat"
;
p.Start();
Response.Write(p.StandardOutput.ReadToEnd());
p.WaitForExit();
Response.Write("Writing");
Response.Write("<script>window.close();</script>");
basically I want to call a batch file from (ASP.NET C#)
upon a button click, execute then exit. Unfortunately my
batch code isn't executing.I would love to put a status
bar in here too while my batch is executing. Please help
Here's the code
....
Process p = new Process();
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName
= "C:\\P4Root\\applications\\..some_app\\debug\\build.bat"
;
p.Start();
Response.Write(p.StandardOutput.ReadToEnd());
p.WaitForExit();
Response.Write("Writing");
Response.Write("<script>window.close();</script>");