一键清理系统垃圾 bat,小编教你win10一键清理系统垃圾文件

一键清理系统垃圾 bat,小编教你win10一键清理系统垃圾文件,第1张

电脑升级到了Windows10,电脑C盘里面的可用空间就会变得比较小,这是安装Windows10占用了不少系统盘的空间,这个时候要怎样清理系统文件,win10电脑清理bat文件是一款专门针对Win10系统进行优化的bat小程序。下面来看看win10电脑清理bat文件的使用。

新买的电脑一开始用得很舒心,打开软件嗖嗖的,非常爽。可随着使用时间和次数的增加,Windows电脑的运行速度会有明显的下降,开关机速度慢,打开软件会等待一两秒,那么要如何一键清理系统垃圾文件?下面,小编就来跟大家介绍win10一键清理系统垃圾文件的使用方法。

win10一键清理系统垃圾文件

在电脑桌面空白处新建一个文本文档

win10图-1

新建完成后,将下文复制粘贴到文本文档里。

@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. &pause

一键清理图-2

复制完成后,点击文件,另存为,d出另存为窗口后,

一键清理图-3

保存类型改为所有文件,保存路径自定义,文件名自定义(注:文件名尾缀需要加上“.bat”)

win10图-4

最后生成一个bat批处理文件,我们双击打开,系统便会自动清理垃圾文件了。

垃圾文件图-5

以上就是win10一键清理系统垃圾.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%\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

======复制下面的文字(这行不用复制)============================= @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 =====到这里为止(这行不用复制)==============================================


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

原文地址: http://outofmemory.cn/tougao/11935883.html

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

发表评论

登录后才能评论

评论列表(0条)

保存