在WIN7中怎样用批处理一键清理系统垃圾

在WIN7中怎样用批处理一键清理系统垃圾,第1张

清理垃圾步骤

1.C盘的缓存清理

2.实际帆者键垃圾的清理

3.注册列表态巧的清理

4.百度卫士清理垃圾

以上嫌旦四种清理靠软件实现可以,自己如果熟悉手动清理也可以

1、新建文本文档,如:在桌面的空白处右键,选择:新建-文本文档,

桌面上就有:新建文本文档.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”。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/12355864.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存