Hi,
I have created a service to execute a batch file from it. The service is working fine on my Development Machine (XP) but not working on Production Server (Windows Server 2003
R2).
Code I am using to execute batch file is
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = strBatchPath;
proc.StartInfo.RedirectStandardError = false;
proc.StartInfo.RedirectStandardOutput = false;
proc.StartInfo.UseShellExecute = false;
proc.Start();
proc.WaitForExit();
I have debug the service on server; Code is not giving any type of error but anyway the .bat file is also not run.
any suggestions.
Kind Regards,
Jay