Our C# application will launch a console application executable by doing this: Process correctionProcess = Process.Start(exePath, rawDataFileName);
Customer wants to hide that console window which is from their application. Is that possible for us to do that?
You can create the Process with ProcessStartInfo, where the CreateNoWindow and UseShellExecute properties are set to true and false respectively.
ProcessStartInfo startInfo = new ProcessStartInfo(exePath);
startInfo.CreateNoWindow = true;
startInfo.UseShellExecute = false;
startInfo.Arguments = rawDataFileName;
Process.Start(startInfo);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With