I need to start a complete command line like \"app.exe /arg1:1 /arg2:true\" from my C# app.
Process.Start and ProcessStartInfo needs to have the filename and argumen
Yes, you can launch cmd.exe
with the full command-line you want to send as the arguments.
info.FileName = "cmd.exe";
info.Arguments = "app.exe /arg1:1 /arg2:true";
ProcessStartInfo.UseShellExecute makes Process.Start behave exactly like the Shell: http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.useshellexecute.aspx
I've found the solution I've been looking for: Executing another program from C#, do I need to parse the "command line" from registry myself?
Thanks again for your help!