如何在具有管理权限的c#中启动进程? 我使用的代码为:如何启动具有管理权限的进程
Process p = new Process();
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.FileName = path;
p.StartInfo.UseShellExecute = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
if (System.Environment.OSVersion.Version.Major >= 6)
{
p.StartInfo.Verb = "runas";
}
p.Start();
仍然无法正常工作。请帮助我。
感谢
为该进程提供所需的用户权限.. – 2012-07-11 10:58:36
可能的重复[如何在C#中以管理员模式启动进程](http://stackoverflow.com/questions/2532769/how-to -start-A-过程-AS-管理员模式在-C-尖锐) – 2012-07-11 11:03:17