当前位置:首页 > 申请书大全 > [一键清理系统垃圾文件bat(一键清理bat)]清理垃圾bat代码
 

[一键清理系统垃圾文件bat(一键清理bat)]清理垃圾bat代码

发布时间:2019-07-02 05:30:56 影响了:

首先,点击右键,新建一个文本文档。在新建时,注意,把文件后缀名改成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

保存好以后,双击文档运行,就好了。

猜你想看
相关文章

Copyright © 2008 - 2022 版权所有 职场范文网

工业和信息化部 备案号:沪ICP备18009755号-3