Issue in Batch execution at Server side
Hi,
I have a requirement to execute a batch at server side. This batch creates some files in the server. When ever I am running the following code, I am not getting any output of created files and more over command window is not opened in server .
System.Diagnostics.Process myprocess = new System.Diagnostics.Process(); // Declare New Process
System.Diagnostics.ProcessStartInfo lObjProcInfo = new System.Diagnostics.ProcessStartInfo();
lObjProcInfo.UseShellExecute = false;
lObjProcInfo.RedirectStandardOutput = true;
lObjProcInfo.CreateNoWindow = true;
lObjProcInfo.RedirectStandardInput = true;
lObjProcInfo.WindowStyle = ProcessWindowStyle.Normal;
lObjProcInfo.CreateNoWindow = true;
lObjProcInfo.FileName = lStrBatchPath;
myprocess = System.Diagnostics.Process.Start(lObjProcInfo);
Please help out.
Thanks
Sreenath