private static string ExecuteWith(string arguments)
{
try
{
using (var process = new Process())
{
process.StartInfo = new ProcessStartInfo(Executable)
{
CreateNoWindow = true,
RedirectStandardOutput = true,
UseShellExecute = false,
Arguments = arguments
};
process.Start();
string response = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return response;
}
}
catch (Exception e)
{
return e.Message;
}
}