1

I have a .NET Core console app (a TCP client) that needs to launch a .NET Framework console app (a TCP Server). I'm using System.Diagnostics.Process.Start(server); and it starts, but both console apps are in the same window. How can I get the server to run in a separate window?

1 Answer 1

8

If you set the process properties as follows. You will get it in a new window.

ProcessStartInfo p = new ProcessStartInfo(fileName, arg); 
p.UseShellExecute=true;
Process processChild = Process.Start(p); // separate window; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.