public string StartProcess( string filename, string arguments )
{
ProcessStartInfo info = new ProcessStartInfo( );
info.FileName = filename;
info.Arguments = arguments;
info.UseShellExecute = false;
info.RedirectStandardOutput = true;
info.CreateNoWindow = true;
string output = string.Empty;
try
{
Process p = Process.Start( info );
p.Start( );
output = p.StandardOutput.ReadToEnd( );
p.WaitForExit( /* 10000 */ );
p.Close( );
}
catch ( Exception ex )
{
MessageBox.Show( ex.ToString( ) );
}
return output;
}