作者:电脑信息网日期:
返回目录:win7问题
1、新建文本文档e799bee5baa6e997aee7ad94e58685e5aeb9361,如:在桌面的空白处右键,选择:新建-文本文档,
桌面上就有:新建文本文档.txt,其中包含如下内容(再多也不怕,反正是拷贝),并保存:
@echo off
color 0b
echo =====================================================
echo.
echo 您已启动 WIN 7 系统垃圾清理 ,这里运行的命令都很安全!
echo.
echo =====================================================
echo.
echo 在程序没有结束的信息时,请勿关闭本窗口!
echo.
echo =====================================================
echo.
echo 正在清除系统垃圾文件,请稍候......
echo.
echo =====================================================
echo.
echo 第一
echo 清除清除Ie的浏览记录
echo.
echo **********************************
echo.
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
@ echo Ie的浏览记录已经清除完毕
echo.
echo **********************************
echo.
echo 第二
echo 删除硬盘上的~$*.doc文件
echo (时间稍长,请耐心等候)
echo.
echo **********************************
echo.
del /f /s /q /a c:\~$*.doc
del /f /s /q /a d:\~$*.doc
del /f /s /q /a e:\~$*.doc
del /f /s /q /a f:\~$*.doc
del /f /s /q /a g:\~$*.doc
echo.
echo **********************************
echo.
@ echo 硬盘上的~$*.doc文件已经清除完。
echo.
echo **********************************
echo.
echo 第三
echo 删除系统的tmp文件
echo.
echo **********************************
echo.
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
rd /s /q %windir%\temp & md %windir%\temp
del /f /s /q "%userprofile%\local settings\temp\*.*"
del /f /s /q %windir%\prefetch\*.*
echo.
echo **********************************
echo.
echo 第四
echo 删除日志文件
echo 删除帮助索引文件
echo 删除磁盘扫描留下的临时文件
echo 删除备份文件
echo 删除旧备份文件
echo.
echo **********************************
echo.
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %windir%\*.bak
del /f /s /q %systemdrive%\*.old
echo.
echo **********************************
echo.
echo 第五
echo 删除补丁文件
echo.
echo **********************************
echo.
cd /d c:\windows
for /f "delims=" %%i in ('dir/b/ad $*$')do rd/s/q "%%i"
@ del /f /s /q /a c:\windows\kb*.log
echo.
echo **********************************
echo.
echo 第六
echo 清空剪贴板上的内容
echo.
echo **********************************
echo.
echo 剪贴板上的内容已经清除完。
echo.
echo =====================
echo.
echo ……垃圾已清理完成……
echo.
echo =====================
echo.
echo ……因为有您在,所以我很幸福……
echo.
echo ……BYBY……再见!
echo.
echo ======================
echo. & pause
2、改名,将桌面上的“新建文本文档.txt”改为“一键清理系统垃圾.bat”。
3、只要运行“一键清理系统垃圾.bat”,根据提示操作即可。
4、如果在清理过程中出现提示:“另一个程序正在使用此文件,进程无法访问”
可试试在“安全模式”下执行“一键清理系统垃圾.bat”。
你好!WIN7的那种一见清理垃圾的代码是需要根据提示步骤制作一款桌面下插件出来,麻烦的同时一样需要占用一个抄桌面图标,还不能删除。楼百主如果需要经常清理电脑垃圾,建议安装电脑管家,其功能和效果均不错,清理垃圾功能还可定时处理,方便快捷,同时还有助于电脑安全防护和软件管理,以及查毒杀毒,非常方便,度建议安装使用。
1.系统的 开始-控制面板-系统和安全-管理工具-释放磁盘空间和对硬盘进行碎片整理
2软件 推荐魔方
自己做一个吧 在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去,点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作e69da5e887aae799bee5baa6e997aee7ad94334成功了!
双击它就能很快地清理垃圾文件,大约一分钟不到。
======就是下面的文字(这行不用复制)=============================
@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 清理系统垃圾完成!
ECHO 文件清理完毕!本程序将在3秒后退出!现在进入倒计时.........
@echo off
echo WScript.Sleep 300 > %temp%.\tmp$$$.vbs
set /a i =3
:Timeout
if %i% == 0 goto Next
setlocal
set /a i = %i% - 1
echo 倒计时……%i%
cscript //nologo %temp%.\tmp$$$.vbs
goto Timeout
goto End
:Next
cls &
echo.
for %%f in (%temp%.\tmp$$$.vbs*) do del %%f
echo.