[Mono-list] calling external program
Jamin Philip Gray
jgray@writeme.com
Fri, 20 Dec 2002 11:05:23 -0600 (CST)
Thanks, guys. I was calling one of the unimplemented ones. I've got it
working now like this:
Process p = new Process();
p.StartInfo = new ProcessStartInfo(cmd);
p.Start();
-jamin
On Fri, 20 Dec 2002, Matt Kunze wrote:
> Gonzalo Paniagua Javier wrote:
> > El jue, 19-12-2002 a las 19:26, Jamin Philip Gray escribió:
> >
> >>I noticed that System.Diagnostics.Process.Start() has not yet been
> >>implemented. Is there another way to call an external program from
> >>within a C# program?
> >
> >
> > Process.Start is implemented.
> >
> > -Gonzalo
>
> two overridden versions are not implemented:
>
> Process.Start(string filename)
> Process.Start(string filename, string arguments)
>
> Process.Start(ProcessStartInfo info) works though
>
> Is there any reason the unimplemented functions aren't simply:
>
> public static Process.Start(string filename)
> {
> return Process.Start(new ProcessStartInfo(filename);
> }
>
> public static Process.Start(string filename, string arguments)
> {
> return Process.Start(new ProcessStartInfo(filename, arguments);
> }
>
> it certainly would reduce confusion that those variants are unimplmented
> yet others are
>
--
name: Jamin Philip Gray
email: jamin@pubcrawler.org
icq: 1361499
aim: jamingray47
yahoo: jamin47
web: http://pubcrawler.org
Never be afraid to tell the world who you are.
--Anonymous