在 Visual C# 项目中,转到项目设计器的“应用程序”页面,单击“清单”列表中的“Properties\app.manifest”
可以对UAC清单操作
一般只有你没设置其他的受限制的管理员的话,你就是管理员身份啦!你打开开始菜单,点运行,在里面输入cmd就可以啦!就可以进入半个dos操作平台了!
Process p = new Process(); //创建文件
p.StartInfo.FileName = "cmd.exe ";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = false; //显示
p.Start();