I have an win-form c# that opens a console application. When i launch the form, which automaticly launches it opens a process
conhost.exe
I tried everything to be able to auto close it, but no solution so far. Any ideas?
this and similar code i tried:
foreach (Process proc in Process.GetProcessesByName("conhost.exe"))
{
proc.Kill();
}