This time with a batch application launched from a windows forms (button click event)
The code to launch is this:
ProcessStartInfo ProcessInfo; Process Process; ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + "C:\\test\\test.bat"); ProcessInfo.CreateNoWindow = false; ProcessInfo.UseShellExecute = true; Process = Process.Start(ProcessInfo); Process.Close();
The problem is that if I execute this batch from C# I receive the black window for a brief time and then nothing (no process launched) - the bat file should start a server applications that you can see in task manager.
If I execute the batch file directly from windows then everything works and the server application starts...