internal static string ExecuteSystemProcess(string command, string args, string workingdir)
{
ProcessStartInfo si = new ProcessStartInfo {
FileName = command,
Arguments = args,
WorkingDirectory = workingdir,
CreateNoWindow = true
};
Program program = new Program(si);
program.Start();
while (!program.WaitForExit(100))
{
}
string standardOutputAsString = program.GetStandardOutputAsString();
program.Dispose();
return standardOutputAsString;
}