hello
i have developed windows application using c# .net 2005 .
it worked fine with mono 2.0 on windows,but when i run it on linux using
mono 2.0
i got an error message
AppliactionName='/shared/application/mysqldump.exe',CommandLine='-...',CurrentDirectory="]
this is becuse we acess exe file
here is some code where not execute proper
//
string locn = Application.StartupPath + "\\mysqldump.exe";
ProcessStartInfo info = new ProcessStartInfo(locn);
info.Arguments = path;
info.RedirectStandardInput = false;
info.RedirectStandardOutput = true;
//info.Password= "swarup";
// info.FileName ="cmd.exe";
info.UseShellExecute = false;
info.WindowStyle = ProcessWindowStyle.Minimized;
// info.Arguments = path;
info.CreateNoWindow = true;
info.RedirectStandardError = true;
Process process = Process.Start(info);
//Process process = new Process();
//process.StartInfo = info;
//process.StartInfo.FileName = filename;
//process.Start();
swriter.Write(process.StandardOutput.ReadToEnd());
process.WaitForExit();
if (process.ExitCode != 0)
throw new Exception(process.StandardError.ReadToEnd());
process.Close();
swriter.Close();
ostrm.Close();
//
i have been hoping for earliar response .
Thank you
--
View this message in context:
http://www.nabble.com/Running-Executable-%28.exe%29-using-Process.Start-on-Linux-tp21726754p21726754.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list