您的位置首页生活百科

win10怎么一键清理系统垃圾bat

win10怎么一键清理系统垃圾bat

的有关信息介绍如下:

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

在文件中输入:

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

@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 ”,放置在任意位置。

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

一键清理Bat是目前最简单、最安全、最实用的清理系统垃圾的方法,小小的bat文件就能满足绝大部分用户的基本需求,如果你不知道该如何做,那么小编我今天将教大家一个款。

电脑出现卡顿的现象怎么办?电脑卡顿的原因有很多,比如系统垃圾较多也会出现,那这种情况该怎么解决呢?其实使用bat清理垃圾的方法就可以了,无需下载,使用轻松,接下来我们看看具体的操作是怎么样的吧。清理系统垃圾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%

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%

del /f /s /q “%userprofile%\Local Settings\Temporary Internet Files\*.*”

del /f /s /q “%userprofile%\Local Settings\Temp\*.*”

del /f /s /q “%userprofile%

echo 清除系统LJ完成!

echo. & pause

win10怎么一键清理系统垃圾bat

一键清理bat界面1

保存文件,重命名文件,为***“.bat”的格式

win10怎么一键清理系统垃圾bat

一键清理bat界面2

确定后显示如下图,我们双击打开

win10怎么一键清理系统垃圾bat

一键清理bat界面3

可以看到窗口自动输入

win10怎么一键清理系统垃圾bat

一键清理bat界面4

完成后点击任意键退出,表示清理完毕

了解更多:

一键清理bat界面5

有没有发现空间变大了呢?有没有觉得运行又流畅了许多呢?以上就是关于一键清理系统垃圾bat的方法了,希望可以帮助到大家。

在桌面上,右键,新建文本文档

输入以下代码:

@echo off

echo 专门为windows10而写,因而更专业!按任意键清理您的系统垃圾!

echo 本Bat作者为倦意,转载随意,请标明作者!

set /p input=请选择(1)清理系统垃圾(2)专清腾讯垃圾(3)直接退出

if "%input%"=="1" goto one

if "%input%"=="2" goto two

if "%input%"=="3" goto three

:one

del /f /s /q "%userprofile%\AppData\Local\Temp\*.*"

del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\IE\*.*"

del /f /s /q "%windir%\Offline Web Pages\*.*"

del /f /s /q "%userprofile%\AppData\Local\Steam\htmlcache\*.*"

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

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 "%windir%\SoftwareDistribution\download\*.*"

del /f /s /q "%windir%\Prefetch\*.*"

del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\*.*"

del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\Low\*.*"

pause&echo 系统垃圾清理完毕

exit

:two

TASKKILL /f /IM "Tencent TenioDL for Game.exe"

TASKKILL /f /IM "QQMicroGameBoxTray.exe"

TASKKILL /f /IM "QQMicroGameBoxService.exe"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMGBDownload\*.*"

del /f /s /q "%userprofile%\AppData\Local\Tencent\Cross\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMicroGameBox\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniGameBox\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniDL\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\游戏人生cross\*.*"

del /f /s /q "%userprofile%\AppData\Local\Tencent\QQPet\*.*"

del /f /s /q "%systemdrive%\Program Files (x86)\Tencent\QQMicroGameBoxService\*.*"

del /f /s /q "%userprofile%\Roaming\Tencent\Logs\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQGAMETempest\Download\*.*"

del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQ\Temp\*.*"

pause&echo 腾讯垃圾清理完毕

exit

:three

exit

3

保存为.bat格式的文件即可

4

如果你嫌麻烦,这里有我自己写好的

链接:

密码: w44i

Win10系统怎么清理系统垃圾

有效清理WIN10系统垃圾

快速清除的作用:源代码如下@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %systemdrive%\*.olddel /f /s /q %systemdrive%\recycled\*.*del /f /s /q %windir%\*.bakdel /f /s /q %windir%\prefetch\*.*rd /s /q %windir%\temp & md %windir%\tempdel /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(复制这个名称)保存即可,双击运行。