今天在网上找到的一个清楚c盘垃圾文件的方法

感觉很使用,所以记录下来.
使用方法:把如下的代码写到一个文本文件当中,然后把其后缀改为.bat
最后,双击它,自动清楚垃圾文件.
代码如下

@echo off
echo 正在清除系统垃圾文件,请稍等
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q 
"%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q 
"%userprofile%\Local Settings\Temp\*.*"
del /f /s /q 
"%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause 

其实我也不是很懂这个代码里的语言,可能是批处理吧,不过望文生意大概能看出它是清楚那些后缀名的文件的.不过那个网站说能打扫出2G的空间,我的系统可能用的太长了,打扫完后c盘剩余空间还是200多m,只打扫出150来m,看来还要想想其它的办法.不过觉得这个方法还是挺实用的,所以今天记录一下以后肯定还能用的到.

---------------------------------------------------------------

aspnetxBI笔记系列索引:

使用SQL Server Analysis Services数据挖掘的关联规则实现商品推荐功能

一起玩转SQL Server 2012 下的分析服务

使用SQL Server分析服务定位目标用户

---------------------------------------------------------------

来自博客园aspnetx宋卫东

原文地址:https://www.cnblogs.com/aspnetx/p/476834.html