命令行清理电脑垃圾,提供运行速度的方法

今天小编要和大家分享的是命令行清理电脑垃圾,希望能够帮助到大家。

操作方式

  • 01

    起首在我们的电脑桌面上新建一个TXT格局的文件,如下图所示。

  • 02

    然后在记事本中输入@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

  • 03

    接着点击保留,如下图所示。

  • 04

    然后右击这个记事本并点击属性,如下图所示。

  • 05

    然后把这个文件的后缀名改为bat,如图所示。

  • 06

    接着双击这个文件,如下图所示。

  • 07

    如许操作完当作,我们就会删除一些垃圾文件了。

  • End
  • 发表于 2018-12-02 00:00
  • 阅读 ( 843 )
  • 分类:电脑网络

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
联系我们:uytrv@hotmail.com 问答工具