Created
February 24, 2012 07:52
-
-
Save lmatt-bit/1898840 to your computer and use it in GitHub Desktop.
run process as administrator
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
ProcessStartInfo psi = new ProcessStartInfo(); | |
//psi.UseShellExecute = false; if uncomment this line, then you can not run as administrator | |
psi.Verb = "runas"; | |
Process.Start(psi); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment