码迷,mamicode.com
首页 > 其他好文 > 详细

删除无用文件,清理硬盘

时间:2015-05-04 13:37:48      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:

@echo off

color 1e

for /r c:\ %%a in (*.tmp *.chk *.gid *._mp *.old *.bak *.log) do del /f /s /q "%%a"

for /r c:\windows\temp %%a in (*.*) do del /f /s /q "%%a"

for /r c:\windows\Prefetch %%a in (*.*) do del /f /s /q "%%a"

for /r %userprofile%\AppData\Local\Temp %%a in (*.*) do del /f /s /q "%%a"

for /r "%localappdata%\Microsoft\Windows\Temporary Internet Files" %%a in (*.*) do del /f /s /q "%%a"

for /r %localappdata%\Microsoft\Windows\History %%a in (*.*) do del /f /s /q "%%a"

for /r %appdata%\Microsoft\Windows\Cookies %%a in (*.*) do del /f /s /q "%%a"

for /r %windir%\SoftwareDistribution\Download %%a in (*) do del /f /s /q "%%a"

for /r "%windir%\Downloaded Program Files" %%a in (*) do del /f /s /q "%%a"

for /r %windir%\System32\LogFiles %%a in (*) do del /f /s /q "%%a"

del /f /s /q %systemdrive%\hiberfil.sys

pause

 

删除无用文件,清理硬盘

标签:

原文地址:http://www.cnblogs.com/EllieSoft/p/4475835.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!