public static string shell(string filename, string arguments) { System.Diagnostics.Process p = shellp(filename, arguments); string output = p.StandardOutput.ReadToEnd(); p.WaitForExit(); return output; }