📜  从服务 c# 代码示例轻松启动管理进程

📅  最后修改于: 2022-03-11 14:49:14.789000             🧑  作者: Mango

代码示例1
public void ExecuteAsAdmin(string fileName)
{
    Process proc = new Process();
    proc.StartInfo.FileName = fileName;
    proc.StartInfo.UseShellExecute = true;
    proc.StartInfo.Verb = "runas";
    proc.Start();
}