win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

我们在使用win10系统时都会产生很多系统垃圾,如果没有及时清理的话,就会影响系统运行速度,但是每次手动清理有点麻烦,其实我们可以创建一键清理系统垃圾bat,只要双击就可以一键快速清理垃圾,要怎么操作呢,本文就给大家带来详细的设置方法吧。

具体步骤如下:

1,右键新建记事本文件;

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

2,在记事本文件中复制——粘贴下面的代码:

@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

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

3,记事本另存为“系统清理.bat”(文件名可自定,文件扩展名必须是.bat),另存为时“保存类型”选择“所有文件”;

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

4,双击保存的“系统清理.bat”文件即可运行,清理结束后按任意键。

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

win10系统怎么设置一键清理垃圾_win10创建一键清理系统垃圾bat的方法

关于win10创建一键清理系统垃圾bat的方法就给大家介绍到这边了,有需要的用户们可以采取上面的方法来解决吧。

猜你喜欢
网友评论
最近更新
  • 安卓
  • 手游
  • 软件