The CreateProcess Win32 call will allow NULL to be passed for the
CommandLine setting. When this is done, the caller can pass the application
and command line on the same argument. However, the Process.Start() command
does not seem to allow this. It forces you to specify the command line args
as a separate parameter. Is there anyway to start a process in C# that will
work exactly the same way as CreateProcess?
I have tried to specify the application and args in the Start call as one
string, but it does not work.

Signature
---------------------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
MailID = varnk
Domain = diebold.com
---------------------------------------------
Peter Ritchie [C# MVP] - 07 Nov 2007 03:37 GMT
How about:
System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo("\"c:\\WINDOWS\\system32\\notepad.exe\"
\"c:\\file.txt\"");
psi.UseShellExecute = false;
System.Diagnostics.Process.Start(psi);

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> The CreateProcess Win32 call will allow NULL to be passed for the
> CommandLine setting. When this is done, the caller can pass the application
[quoted text clipped - 5 lines]
> I have tried to specify the application and args in the Start call as one
> string, but it does not work.