[Mono-list] Three questions...
Salvatore Scarciglia
s.scarciglia at hyperphar.com
Fri Dec 2 02:40:25 EST 2005
It seems what i need, but the namespace Process was not found in the
System.Diagnostics. WHere is it ??
SaS
On Thu, 1 Dec 2005 16:17:44 -0200
Everaldo Canuto <everaldo.canuto at gmail.com> wrote:
> HI,
>
> You need to make something like this:
>
> Process process = new Process();
> process.StartInfo.UseShellExecute = false;
> process.StartInfo.RedirectStandardOutput = true;
> process.StartInfo.RedirectStandardError = true;
> process.StartInfo.RedirectStandardInput = true;
> process.StartInfo.CreateNoWindow = true;
> process.StartInfo.WorkingDirectory = "./";
> process.StartInfo.FileName = "firefox";
> process.StartInfo.Arguments = "www.mono-project.com";
> process.EnableRaisingEvents = true;
> process.Start();
> process.WaitForExit();
>
> Take a look at Process classe documentation and you understand how it works.
>
> Everaldo
>
> 2005/12/1, Salvatore Scarciglia <s.scarciglia at hyperphar.com>:
> > 1. How can i launch an external program such as Firefox or NEdit ?
> > 2. Is it possible to check the status of the running application ?
> > 3. What happens if the launcher terminate its job ?
> >
> > Thanx.
> > SaS
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
More information about the Mono-list
mailing list