Whats the difference between Process and ProcessStartInfo in C#?
Posted
by JimDel
on Stack Overflow
See other posts from Stack Overflow
or by JimDel
Published on 2010-05-23T00:45:11Z
Indexed on
2010/05/23
0:50 UTC
Read the original article
Hit count: 431
Whats the difference between Process and ProcessStartInfo? Ive used both to launch external programs but there has to be a reason there are two ways to do it. Here are two examples.
Process notePad = new Process();
notePad.StartInfo.FileName = "notepad.exe";
notePad.StartInfo.Arguments = "ProcessStart.cs";
notePad.Start();
and
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "notepad.exe";
startInfo.Arguments = " ProcessStart.cs ";
Process.Start(startInfo)
Thanks
© Stack Overflow or respective owner