Answers for "easily start admin process from service c#"

C#
0

easily start admin process from service c#

public void ExecuteAsAdmin(string fileName)
{
    Process proc = new Process();
    proc.StartInfo.FileName = fileName;
    proc.StartInfo.UseShellExecute = true;
    proc.StartInfo.Verb = "runas";
    proc.Start();
}
Posted by: Guest on August-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language