Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active February 9, 2022 17:33
Show Gist options
  • Save unitycoder/752f3af7321e0a638893687cfe75f9ab to your computer and use it in GitHub Desktop.
Save unitycoder/752f3af7321e0a638893687cfe75f9ab to your computer and use it in GitHub Desktop.
start launch executable with parameters process
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