Win10 在管理员权限下启动时启动程序
发布时间
阅读量:
阅读量
近期在Windows 10系统中实施一个项目时,遇到了设置管理员权限开机自启的难题。现将相关解决方案归纳如下:
首先,为进行测试,我编写了一个简易程序test.exe(该程序的功能是在C盘系统目录下生成一个文件):
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream temp("C:/Program Files (x86)/Internet Explorer/test/test.txt");
if (!temp)
cout << "creat failed" << endl;
else
{
cout << "creat successfully" << endl;
temp.close();
}
system("pause");
return 0;
}
全部评论 (0)
还没有任何评论哟~
