使用bat批处理命令清理windows7系统垃圾文件

 时间:2024-10-22 14:05:27

1、右键桌面空白处先择“新建”并在选项下选择“文本文档”

使用bat批处理命令清理windows7系统垃圾文件

3、打开垃圾清理文档并复制如下列代码: @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并将文档保存。

使用bat批处理命令清理windows7系统垃圾文件

4、由于系统默认都是隐藏文件的扩展名,那么我们去设置一下,打开”计算机“并点击”工具“菜单下的”文件夹“选项

使用bat批处理命令清理windows7系统垃圾文件

6、这时我们回到桌面看看我们刚才新建的文档文件已经变成了”垃圾清理.txt“,我们右键点击”重命名“,将后面的txt改成bat前面的”.“不要动哦!修改好以后会有提示的,如果看不到提示说明你的方法错误

使用bat批处理命令清理windows7系统垃圾文件使用bat批处理命令清理windows7系统垃圾文件使用bat批处理命令清理windows7系统垃圾文件
  • win7系统怎么停止服务Software Protection
  • windows10如何进入安全模式
  • Windows10系统加入域后权限设置添加
  • WinPE的iso转fba的制作教程
  • win10系统怎么安装win7
  • 热门搜索
    兰蔻香水怎么样 圈11怎么打 黄山旅游攻略三日游 本溪旅游攻略 杰德怎么样 节育环怎么取 罗平旅游攻略 塔塔粉可以用什么代替 可以联机的单机游戏 水龙头堵了怎么办