[Mono-winforms-list] Running Executable (.exe) using Process.Start on Linux
Matt Emson
memsom at interalpha.co.uk
Thu Jan 29 10:27:50 EST 2009
aifaz wrote:
As the other reply says, you need to run this under Mono... on Windows,
this process would be spawned using the MS.Net framework.
> string locn = Application.StartupPath + "\\mysqldump.exe";
However, this line is quite possibly causing a problem in Linux as well
- Linux uses a "forward slash" as the path separator .... you should be
looking at System.IO.Path.DirectorySeparatorChar to work out what the
separator it should be... and "/mysqldump.exe" would be in the root of
your Linux file system too. Current directory would be more like
"./mysqldump.exe".
More information about the Mono-winforms-list
mailing list