首页 技术 正文
技术 2022年11月12日
0 收藏 320 点赞 5,083 浏览 1531 个字
@ECHO OFF
@echo
@echo
@echo 清理几个比较多垃圾文件的地方
DEL /F /S /Q "C:\WINDOWS\PCHealth\ERRORREP\QSIGNOFF\*.*"
DEL /F /S /Q "C:\WINDOWS\PCHealth\ERRORREP\UserDumps\*.*"
DEL /F /S /Q "C:\WINDOWS\system32\LogFiles\HTTPERR\*.*"
DEL /F /S /Q "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*"
DEL /F /S /Q "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\*.*"
DEL /F /S /Q "C:\windows\temp\*.*"
DEL /F /S /Q /A:S "C:\WINDOWS\IIS Temporary Compressed Files\*.*"@echo 删除补丁备份目录
RD %windir%\$hf_mig$ /Q /S@echo 把补丁卸载文件夹的名字保存成2950800.txt
dir %windir%\$NtUninstall* /a:d /b >%windir%\.txt@echo 从2950800.txt中读取文件夹列表并且删除文件夹
for /f %%i in (%windir%\.txt) do rd %windir%\%%i /s /q@echo 删除2950800.txt
del %windir%\.txt /f /q@echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)
del %windir%\KB*.log /f /q@echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*.tmp@echo 删除系统盘目录下临时文件
del /f /s /q %systemdrive%\*._mp@echo 删除系统盘目录下日志文件
del /f /s /q %systemdrive%\*.log@echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详)
del /f /s /q %systemdrive%\*.gid@echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件
del /f /s /q %systemdrive%\*.chk@echo 删除系统目录下old文件
del /f /s /q %systemdrive%\*.old@echo 删除回收站的无用文件
del /f /s /q %systemdrive%\recycled\*.*@echo 删除系统目录下备份文件
del /f /s /q %windir%\*.bak@echo 删除应用程序临时文件
del /f /s /q %windir%\prefetch\*.*@echo 删除系统维护等操作产生的临时文件
del /f /s /q %windir%\temp\*.*@echo 删除当前用户的COOKIE(IE)
del /f /s /q %userprofile%\cookies\*.*@echo 删除internet临时文件
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"@echo 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%\local settings\temp\*.*"@echo 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%\recent\*.*"

http://www.kejianet.cn/c-clean/

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902