赞
踩
安装程序时候,会安装在某文件夹下,可以利用该程序,让windows defender 不检测该文件夹。
- #include <iostream>
- #include <Windows.h>
- using namespace std;
-
- int main(int argc, char* argv[])
- {
- char filePath[1024];
- strcpy(filePath,argv[1]);
-
- //cout << filePath <<endl;
- char* a = new char[1024];
- sprintf(a,"PowerShell Add-MpPreference -ExclusionPath %s",filePath);
- system(a);
- delete a;
- //system("pause");
- return 0;
- }

用法如下:
此时:window defender 已经不去检测该文件(C:\wpx)。
——————————————
常见问题,部分可能不能使用(出现以下情况)。解决办法:在编译时,将平台改成64位即可。
其他问题的出现:如下图。 解决办法:运行该程序时,使用超级管理员运行。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。