Skip to content

Commit

Permalink
Set working directory after shell execute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxstupo committed Jun 30, 2019
1 parent a4a7f06 commit 5343346
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions YDL-UI/Utility/ExecutableProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public class ExecutableProcess : IDisposable {
this.arguments = arguments;

process = new Process();
process.StartInfo.FileName = path;
process.StartInfo.Arguments = arguments;
process.StartInfo.WorkingDirectory = workingDirectory ?? string.Empty;

process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;

process.StartInfo.Verb = "runas";
process.StartInfo.FileName = path;
process.StartInfo.Arguments = arguments;
process.StartInfo.WorkingDirectory = workingDirectory ?? string.Empty;


process.EnableRaisingEvents = true;
process.StartInfo.RedirectStandardOutput = true;
Expand Down

0 comments on commit 5343346

Please sign in to comment.