查看: 4006|回复: 10
收起左侧

[分享]安全清除你:C盘垃圾,让你更多空间(转帖)

[复制链接]
tom33
发表于 2006-11-27 13:26:21 | 显示全部楼层 |阅读模式
这个程序是自动清理电脑里的垃圾而不会破坏系统 比很多软件都好哦
新建一个记事本并输入以下的内容:

@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


  打开还是记事本的看清楚这里最后将它保存,然后更名为“清除系统LJ.bat”

ok!你的LJ清除器就这样制作成功了!
  以后只要双击运行该文件,当屏幕提示“清除系统LJ完成!就还你一个“苗条”的系统了!!到时候再看看你的电脑,是不是急速如飞呢?

laoyu0804
发表于 2006-11-27 13:35:53 | 显示全部楼层
知道了。多谢。
陈衍茗
发表于 2006-11-27 14:06:16 | 显示全部楼层
@echo off
TITLE Windows 2000/XP清理脚本
color 0B
cls
rem
rem This program is free software; you can redistribute it and/or modify it under
rem the terms of the GNU General Public License as published by the Free Software Foundation;
rem either version 2 of the License, or (at your option) any later version.
rem This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
rem without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
rem See the GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License along with this program;
rem if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
rem MA 02111-1307, USA.
echo.
REM Tested on ... WinXP_SP2
REM Always basic XP64 Support
REM Modifications to BITS service (cause of v5 WindowsUpdate) - #discharged#
REM Additional notices corresponding to DHCP issue
REM Variables problems during RESTORE_DEFAULT usage fixed
REM SMBDEVICEENABLED Restore Bug fixed
REM Mod_history-09-27-2005**11-08-2005**11-29-2005**12-07-2005**12-18-2005

setlocal

REM *** INIT_VARS ***
set CHK_SVC=YES
set XPSP2=FALSE
set SERVER=FALSE
set NT_SERVER_CHK=TRUE


:START
@echo off
echo "Windows操作系统文件清理脚本" [由陈衍茗制作并为本人专用(1.11.2006)]
echo  =======================================================================
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\*.*      
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"      
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"      
del /f /s /q "%userprofile%\recent\*.*"
del /f /q /s "%windir%\Help\*.*"
del /f /q /s "%windir%\ime\CHTIME\*.*"
del /f /q /s "%windir%\Media\*.*"
del /f /q /s "%windir%\system32\LogFiles\*.*"
del /f /q /s "%windir%\system32\IME\CINTLGNT\*.*"
del /f /q /s "%windir%\system32\IME\PINTLGNT\*.*"
del /f /q /s "%windir%\system32\IMSC40A.IME"
del /f /q /s "%windir%\system32\IME\TINTLGNT\*.*"
del /f /q /s %windir%\temp\*.*
del /f /q /s %windir%\*.log
del /f /q /s %windir%\*.dmp
del /f /q /s %windir%\*.tmp
del /f /q /s %windir%\*.bak
del /f /q /s %windir%\Help\Tours\*.*
del /f /q /s %windir%\minidump\*.*
del /f /q /s %windir%\*.old
del /f /q /s %windir%\*.query
del /f /q /s "%userprofile%\Recent\*.*"
del /f /q /s "%userprofile%\NetHood\*.*"
del /f /q /s "%userprofile%\Local Settings\Application Data\*.*"
del /f /q %systemdrive%\recycled\*.*     
del /f /q %userprofile%\cookies\*.*      
del /f /q %userprofile%\recent\*.*
del /f /q %windir%\Prefetch\*.*
del /f /q %windir%\*.txt
del %tempdir%\temp.bat
del C:Progra~1TencentAD*.gif

:QUIT
echo             ________________________________________________________
echo.
echo                     更多信息: http://www.chenyanming.net3.cn
color 0A
ECHO.
ECHO.
ECHO                      ┌────────────────┐  
ECHO                      │▉▉▉ 已经成功的完成操作 ▉▉▉│
ECHO                      └────────────────┘      


)
ECHO.
ECHO.
ECHO.
ECHO 按任意键退出......
if /I "%1"=="" pause>NUL



试试这个
zbwxc
发表于 2006-11-27 15:50:02 | 显示全部楼层
使用很久了,还不错的软件
iorione
头像被屏蔽
发表于 2006-11-27 16:29:35 | 显示全部楼层
不错,不过有人发过了。
saga3721
发表于 2006-12-1 22:10:21 | 显示全部楼层
del /f /s /q %systemdrive%\*.log     
这个不要,否则等撞墙吧,哈哈哈~~~
mds
发表于 2006-12-2 16:58:38 | 显示全部楼层
谢了!
6177890618
发表于 2006-12-2 17:06:47 | 显示全部楼层
谢谢,收下了。
koulifeng
发表于 2006-12-7 21:39:00 | 显示全部楼层
为什么要把这个
del /f /s /q %systemdrive%\*.log     
删掉呢!~
是不是BUS?
yyzz88
发表于 2006-12-10 10:00:51 | 显示全部楼层
谢谢LZ分享
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-4-25 10:09 , Processed in 0.130579 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表