May 13, 2021

Samir Daoudi's Technical Blog

SharePoint, Office 365, C#, .Net, SQL Server News, Tips, Ebooks, Events, Webinars ….etc

Run a process as Administrator with C# programmatically

If you need to run external program from C# code with Administrator privileges,  this code might help. ProcessStartInfo info = new ProcessStartInfo("Process.exe"); info rguments = Application info info Process

If you need to run external program from C# code with Administrator privileges,  this code might help.

ProcessStartInfo info = new ProcessStartInfo("Process.exe");
info.UseShellExecute = true;
info.Verb = "runas";
Process.Start(info);

Leave a comment

Copyright © All rights reserved. | Newsphere by AF themes.
Show Buttons
Hide Buttons

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.