Guest User

Untitled

a guest
Aug 14th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. C# Launch command as administrator
  2. ProcessStartInfo p1 = new ProcessStartInfo();
  3. p1.UseShellExecute = true;
  4. p1.Verb = "runas";
  5. p1.FileName = "cscript";
  6. p1.Arguments = "I:\WPKG\wpkg.js /synchronize /quiet /nonotify";
  7. Process p = new Process();
  8. p.StartInfo = p1;
  9. p.Start();
Add Comment
Please, Sign In to add comment