怎样清理C盘 ?

在桌面上新建一个文本文档,在里面输入:
@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完成!输入任意继续....
pause
 
然后把这个文本文档的后缀名(原来是txt)改成bat,保存,然后打开,就OK了.





呵呵,不用客气。del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"这个句子就是清除的IE缓存。有些文件清除不了是因为这些文件正在被使用,比如说你在打开网页的时候IE缓存里面的某些图片就没办法给删除。你可以在安全模式下运行一下,保证非常干净。


如果你对cmd命令感兴趣的话可以在cmd窗口下输入:help|more
然后查看所有的命令。你要是想要知道某个命令怎么用的话你可以这样,以del为例,输入del/?回车就好了。windows下以cmd的权限最高,你可以用cmd做很多平时不能做的事情。当黑客的必要能力就是用ping命令,呵呵,这就是在cmd窗口里面搞定的。






我本来不想发这个批处理的,因为这上面有太多扩展语句,很多都是不一定每个人都有用,如果你想要弄的彻底你就用下面的:
@echo off                                      
echo Jinnlyy 收藏,正在清除系统垃圾^^请稍等...... 
del /f /s /q c:\*.tmp                         
del /f /s /q c:\*.~*
del /f /s /q c:\*.??~
del /f /s /q c:\*.ftg
del /f /s /q c:\*.$$$
del /f /s /q c:\*.gid
del /f /s /q c:\*.chk
del /f /s /q c:\*.old     
del /f /s /q d:\*.tmp
del /f /s /q d:\*._mp
del /f /s /q d:\*.~*
del /f /s /q d:\*.??~
del /f /s /q d:\*.ftg
del /f /s /q d:\*.$$$
del /f /s /q d:\*.gid
del /f /s /q d:\*.chk
del /f /s /q d:\*.old                       
del /f /s /q e:\*.tmp
del /f /s /q e:\*._mp
del /f /s /q e:\*.~*
del /f /s /q e:\*.??~
del /f /s /q e:\*.ftg
del /f /s /q e:\*.$$$
del /f /s /q e:\*.gid
del /f /s /q e:\*.chk
del /f /s /q e:\*.old
del /f /s /q f:\*.tmp
del /f /s /q f:\*._mp
del /f /s /q f:\*.~*
del /f /s /q f:\*.??~
del /f /s /q f:\*.ftg
del /f /s /q f:\*.$$$
del /f /s /q f:\*.gid
del /f /s /q f:\*.chk
del /f /s /q f:\*.old
del /f /s /q g:\*.tmp
del /f /s /q g:\*._mp
del /f /s /q g:\*.~*
del /f /s /q g:\*.??~
del /f /s /q g:\*.ftg
del /f /s /q g:\*.$$$
del /f /s /q g:\*.gid
del /f /s /q g:\*.chk
del /f /s /q g:\*.old                        
rd /s /q “%windir%\temp\*.*"                
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"  
del /f /s /q "%systemdrive%\recycled\*.*"             
del /f /s /q "%windir%\prefetch\*.*"                 
del /f /s /q "%userprofile%\cookies\*.*"              
del /f /s /q "%userprofile%\recent\*.*"               /
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.jpg"  
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.gif" 
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.jpg" 
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.vbs"  
echo 清理系统LJ完成!按任意键继续....^^
pause


这是终极清除垃圾文件批处理了。^^

  • 作者:jinnlyy
  • 来源网址:http://
  • 免责声明:本文所载资料仅供参考,资料的真实性、准确性由发布者负责,Viv-Media联合大众网对该资料或使用该资料所导致的结果概不承担任何责任。
  • 关于我们|提交网址|提交资讯|提交问答|友情链接|网站地图|广告赞助|帮助中心|举报中心|联系我们|国际站
  • Viv-Media联合大众网法律声明|服务条款|隐私声明|免责声明
  • Copyright 2010-2020 ©viv-media.com Corporation. All rights reserved. 冀ICP备11000884号-1  版权所有 Viv-Media联合大众网  合作伙伴:魅力文学网