-
-
Notifications
You must be signed in to change notification settings - Fork 455
add initial ShellRun support for JsonRPC #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d41dd78
ae7de8d
a6ddaf9
02d101a
3e38a90
ef56d91
8cf9390
a7ef589
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,16 @@ public void OpenSettingDialog() | |
| }); | ||
| } | ||
|
|
||
| public void ShellRun(string cmd) | ||
| { | ||
| System.Diagnostics.Process process = new(); | ||
| var startInfo = process.StartInfo; | ||
| startInfo.FileName = "cmd.exe"; | ||
| startInfo.Arguments = $"/C {cmd}"; | ||
| startInfo.CreateNoWindow = true; | ||
| process.Start(); | ||
|
||
| } | ||
|
|
||
| public void StartLoadingBar() => _mainVM.ProgressBarVisibility = Visibility.Visible; | ||
|
|
||
| public void StopLoadingBar() => _mainVM.ProgressBarVisibility = Visibility.Collapsed; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.