Or Betzalel Or Betzalel - 1 year ago 142
ASP.NET (C#) Question

Start A Process With Parameters

I'm Using Process.Start from my website to open a windows form application I made in c#.

I want send to the application my username.

So how can I do that?

Answer Source

You can use this:

string username = "MyUsername";
Process.Start(Path.Combine("MyExe.exe" + " \"" + username + "\"");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download