mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
update StartInfo arguments if cmd shell type
This commit is contained in:
parent
8cf93907e9
commit
a7ef5895b7
1 changed files with 3 additions and 1 deletions
|
|
@ -109,7 +109,9 @@ namespace Flow.Launcher
|
|||
|
||||
public void ShellRun(string cmd, string filename = "cmd.exe")
|
||||
{
|
||||
var startInfo = ShellCommand.SetProcessStartInfo(filename, arguments: $"/C {cmd}", createNoWindow: true);
|
||||
var args = filename == "cmd.exe" ? $"/C {cmd}" : $"{cmd}";
|
||||
|
||||
var startInfo = ShellCommand.SetProcessStartInfo(filename, arguments: args, createNoWindow: true);
|
||||
ShellCommand.Execute(startInfo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue