[Mono-list] shell another mono app with ProcessStartInfo

giancarlogiesa giancarlogiesa at gmail.com
Sun Apr 26 14:39:51 EDT 2009


thanks!!!
if some one need the code, i' m using this with success for:
load an exe application that need mono on windows and after exit:

private static void StartProcessAndExit(){
	ProcessStartInfo ps = ps = new ProcessStartInfo
("C:\\Programmi\\Mono-2.4\\bin\\mono.exe","C:\\Programmi\\x.exe");
	ps.WorkingDirectory =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
	ps.UseShellExecute = false;
	ps.RedirectStandardOutput = true;
	using (Process p = Process.Start (ps)) {
		//p.WaitForExit ();
		//string output = p.StandardOutput.ReadToEnd ();
		//Console.WriteLine (output);
	}
	Environment.Exit(-1);

}
-- 
View this message in context: http://www.nabble.com/shell-another-mono-app-with-ProcessStartInfo-tp23242099p23245127.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list