Last active
February 9, 2022 17:33
-
-
Save unitycoder/752f3af7321e0a638893687cfe75f9ab to your computer and use it in GitHub Desktop.
start launch executable with parameters process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = Path.Combine(path, exe); | |
ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
startInfo.Arguments =""; | |
startInfo.UseShellExecute = false; | |
System.Diagnostics.Process.Start(startInfo); | |
// launch hidden or minimized | |
var path = Path.Combine(path, exe); | |
ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
startInfo.Arguments =""; | |
startInfo.UseShellExecute = true; | |
startInfo.WindowStyle = ProcessWindowStyle.Hidden; | |
//startInfo.WindowStyle = ProcessWindowStyle.Minimized; | |
System.Diagnostics.Process.Start(startInfo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment