导航:首页 > 文件教程 > 全面系统清理的批处理文件

全面系统清理的批处理文件

发布时间:2022-09-12 13:31:11

① 如何制作一键清理c盘垃圾的批处理文件

不过,笔者还是跟大家介绍一下,方法如下:首先,新建一个记事本并输入以下的内容:@echo off
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. & pause 其次,将它保存,类型为所有文件。再更名为“清除系统垃圾.bat” ,后缀名一定要为“.bat”。然后要进行清理c盘垃圾时,双击“清除系统垃圾.bat”运行该批处理文件就可以了。

② 如何制作一键清理c盘垃圾的批处理文件

这个程序是自动清理电脑里的垃圾文件而不会破坏系统,如果没有安装其它工具的时候可以使用,笔者还是建议网友清理c盘垃圾还是用金山毒霸的金山卫士,该工具很好用。不过,笔者还是跟大家介绍一下,方法如下:首先,新建一个记事本并输入以下的内容:@echo off
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. & pause 其次,将它保存,类型为所有文件。再更名为“清除系统垃圾.bat” ,后缀名一定要为“.bat”。然后要进行清理c盘垃圾时,双击“清除系统垃圾.bat”运行该批处理文件就可以了。

③ 如何使用bat批处理命令清理windows10系统垃圾文件

鼠标右键单击,新建文本文档-记事本

在文件中输入:

++++++++++++++++++++++++++++++++++++++++++++++

@echo off

color 0a

title windows10系统垃圾清理---

echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★

echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★

echo.★☆ ☆★

echo.★☆ ☆★

echo.★☆ 清理系统垃圾文件,请稍等...... ☆★

echo ★☆ ☆★

echo.★☆ ☆★

echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★

echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★

echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时

echo 请勿关闭本窗口。

echo 正在清除系统垃圾文件,请稍后......

echo 删除补丁备份目录

RD %windir%\$hf_mig$ /Q /S

echo 把补丁卸载文件夹的名字保存成2950800.txt

dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt

echo 从2950800.txt中读取文件夹列表并且删除文件夹

for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q

echo 删除2950800.txt

del %windir%\2950800.txt /f /q

echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件)

del %windir%\KB*.log /f /q

echo 删除系统盘目录下临时文件

del /f /s /q %systemdrive%\*.tmp

echo 删除系统盘目录下临时文件

del /f /s /q %systemdrive%\*._mp

echo 删除系统盘目录下日志文件

del /f /s /q %systemdrive%\*.log

echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详)

del /f /s /q %systemdrive%\*.gid

echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件

del /f /s /q %systemdrive%\*.chk

echo 删除系统目录下old文件

del /f /s /q %systemdrive%\*.old

echo 删除回收站的无用文件

del /f /s /q %systemdrive%\recycled\*.*

echo 删除系统目录下备份文件

del /f /s /q %windir%\*.bak

echo 删除应用程序临时文件

del /f /s /q %windir%\prefetch\*.*

echo 删除系统维护等操作产生的临时文件

rd /s /q %windir%\temp & md %windir%\temp

echo 删除当前用户的COOKIE(IE)

del /f /q %userprofile%\cookies\*.*

echo 删除internet临时文件

del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"

echo 删除当前用户日常操作临时文件

del /f /s /q "%userprofile%\local settings\temp\*.*"

echo 删除访问记录(开始菜单中的文档里面的东西)

del /f /s /q "%userprofile%\recent\*.*"

echo

echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★

echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★

echo ★☆ ☆★

echo.★☆ ☆★

echo.★☆ ☆★

echo ★☆ ☆★

echo ★☆ 恭喜您!清理全部完成! ☆★

echo.★☆ ☆★

echo ★☆ ☆★

echo.★☆ ☆★

echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★

echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★

echo.

++++++++++++++++++++++++++++++++++++++++++++++

然后单击文件,选择另存为

将文件另存为“ Windows10一键垃圾清理.bat ”,放置在任意位置。

双击文件便开始自动垃圾清理大约要几分钟时间

④ 求一键清理系统垃圾的批处理命令

======复制下面的文字(这行不用复制)============================= @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”,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!

双击它就能很快地清理垃圾文件,大约一分钟不到。

======就是下面的文字(这行不用复制)=============================

@echo off

echo 正在清除系统垃圾文件,请稍等......

del /f /s /q %systerive%\*.tmp

del /f /s /q %systerive%\*._mp

del /f /s /q %systerive%\*.log

del /f /s /q %systerive%\*.gid

del /f /s /q %systerive%\*.chk

del /f /s /q %systerive%\*.old

del /f /s /q %systerive%\recycled\*.*

del /f /s /q %windir%\*.bak

del /f /s /q %windir%\prefetch\*.*

rd /s /q %windir%\temp & %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完成!就还你一个“苗条”的系统了!!

注:LJ就是垃圾的意思!这招比那些所谓的优化大师好用!最重要的是无论在公司默认的系统环境还是在自己家中的电脑都不会破坏系统文件

⑥ 如何用批处理命令清理电脑里的垃圾文件

首先建立记事本,再输入如下内容后保存,注意扩展名要改成.bat哦。双击就可以清理系统垃圾了
记事本里输入以下内容:
@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

⑦ 怎样用批处理文件清理系统垃圾文件

首先建立
记事本
,再输入如下内容后保存,注意扩展名要改成.bat哦。双击就可以
清理系统垃圾

记事本里输入以下内容:
@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

阅读全文

与全面系统清理的批处理文件相关的资料

热点内容
u盘怎样显示文件后缀 浏览:627
如何更改网络共享 浏览:967
延时摄影的文件储存在哪里 浏览:691
为什么好的网站找不到 浏览:370
联通升级后就是小卡了吗 浏览:363
数据线充电不进电怎么办 浏览:172
哪个编程平台好学 浏览:259
xp系统文件夹共享权限设置 浏览:532
搜索文件格式 浏览:162
兴趣班编程猫是什么 浏览:195
编程i3和i5哪个好 浏览:856
mac用什么打开pdf文件 浏览:903
手机百度查看过的网站怎么删除 浏览:620
applemusic支持哪些文件格式 浏览:79
全省统一编程是什么意思 浏览:501
现在的编程课有哪些 浏览:820
网站页面如何转文档 浏览:179
译官大数据 浏览:619
华为手机中录音文件保存在哪里 浏览:854
网络技术公司的组织架构 浏览:330

友情链接