public static RemoteExecutableResults Execute(string exePath, string workingDir, string arguments) { ExecutableFile wrapper = new ExecutableFile(exePath); wrapper.WorkingDirectory = workingDir; return(wrapper.Run(arguments)); }
public RemoteExecutableResults ExecuteFile(string workingDirectory, string filePath, string arguments) { AuthenicateAssert(); string expandedFilePath = Environment.ExpandEnvironmentVariables(filePath); string expandedWorkingDirectory = Environment.ExpandEnvironmentVariables(workingDirectory); Console.WriteLine("Attempting to execute file:" + expandedFilePath + " " + arguments); RemoteExecutableResults results = new RemoteExecutableResults(); try { results = ExecutableFile.Execute(filePath, expandedWorkingDirectory, arguments); } catch (Exception exc) { results.ExitCode = 1; results.Output = exc.ToString(); } return(results); }
public static RemoteExecutableResults Execute(string exePath, string workingDir, string arguments) { ExecutableFile wrapper = new ExecutableFile(exePath); wrapper.WorkingDirectory = workingDir; return wrapper.Run(arguments); }