[Mono-list] shell another mono app with ProcessStartInfo

Andreas Färber andreas.faerber at web.de
Sun Apr 26 10:19:59 EDT 2009


Hi,

Am 26.04.2009 um 15:42 schrieb giancarlogiesa:

>
> i have find one part of the solution:
>
> private static void Start(){
>
> 	ProcessStartInfo ps = new ProcessStartInfo
> ("C:\\Programmi\\Mono-2.4\\bin\\mono.exe","C:\\Programmi\\x.exe");

Try monow.exe to avoid the Command Prompt popping up.

Andreas

> 	ps.WorkingDirectory =
> Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
> 	ps.UseShellExecute = false;
> 	ps.RedirectStandardOutput = true;
> 	Process p = Process.Start (ps);
> }
>
> but if i close the console application that run this code, the second
> application ( x.exe ) will be closed
> so i have two possible solution
>
> 1) hide the console application
> 2) make indipendent the second application
>
> i have no idea how i can do...
> -- 
> View this message in context: http://www.nabble.com/shell-another-mono-app-with-ProcessStartInfo-tp23242099p23242296.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> 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