自己写的一款清理C盘工具Ver 1.0.0
最近发现不少人的C盘红的要命!
于是我决定写一款C盘清理程序
送代码:
using System;
using System.IO;
using System.Windows.Forms;
namespace 清理C盘
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void Button1_Click(object sender, EventArgs e)
{
MessageBox.Show("QQ:2726423280,对软件有意见可以直接发qq", "关于作者", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void Button3_Click(object sender, EventArgs e)
{
MessageBox.Show("支付宝直接转18960729952支(付宝不行就微信)","支持作者", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void Button2_Click(object sender, EventArgs e)
{
string one = @"C:\Windows\Help"; //帮助程序用,删!
if(Directory.Exists(one))
{
Directory.Delete(one);
}
string two = @"C:\Windows\IME\IMEJP10";
if(File.Exists(two))
{
File.Delete(two);
}
string three = @"C:\Windows\IME\IMETC10"; //输入法不用的,删!
if(Directory.Exists(three))
{
Directory.Delete(three);
}
string four = @"C:\Windows\System32\酷狗音乐精彩写真.scr";
if(File.Exists(four))
{
File.Delete(four);
}
string five = @"C:\perflogs\System\Diagnostics";
if(Directory.Exists(five))
{
Directory.Delete(five);
}
string six = @"C:\Windows\IME\imekr8";
if(Directory.Exists(six))
{
Directory.Delete(six);
}
MessageBox.Show("清理完成!" ,"清理" , MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
下载地址:http://tmp.link/f/613c44e0680b2
软件截图: