Sreenath GV

Sreenath GV

  • NA
  • 22
  • 39.6k

Issue in Batch execution at Server side

Apr 10 2012 12:43 AM
 

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


Answers (2)