diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-20 06:24:09 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-20 06:24:09 +0300 |
| commit | ed0c073eae5358b509c68e3051c489bd25be30c9 (patch) | |
| tree | 2dd9f25649fbb6357791b39f5c3cedb415f8f2c9 /Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs | |
| parent | b40bfa0f652ec194f2c4d05ae02f0a9c420b50fc (diff) | |
| download | Tango-ed0c073eae5358b509c68e3051c489bd25be30c9.tar.gz Tango-ed0c073eae5358b509c68e3051c489bd25be30c9.zip | |
Several fixes and improvements after first real test against PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs b/Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs index 02b58a658..9f05559aa 100644 --- a/Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs +++ b/Software/Visual_Studio/Tango.Console/ConsoleExecutionEngine.cs @@ -55,11 +55,16 @@ namespace Tango.Console process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.RedirectStandardError = true; process.StartInfo.RedirectStandardOutput = true; + + if (request.RunAsAdministrator) + { + process.StartInfo.Verb = "runas"; + } + if (request.WorkingFolder != null) { process.StartInfo.WorkingDirectory = request.WorkingFolder; } - //process.StartInfo.Verb = "runas"; if (ConsoleDictionary.GetKnownCommands().Exists(x => x.Name.ToLower() == parsedCommand.Command.ToLower())) { |
