Windows服务器清理垃圾

 时间:2026-04-24 18:09:32

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

Windows服务器清理垃圾

2、注意上面的步骤,将文本文档的后缀更改为bat或者是cmd的格式,点击执行。打开你的系统盘看一下,发现清理了系统盘的一半空间。

  • 安装与配置 ESXi Server 服务器
  • 如何解决手机信号弱的问题?
  • 联瑞LR-LINK 双口/四口网卡汇聚教程
  • linux怎么查看IP地址
  • Win8.1激活码怎么备份 Win8.1激活码备份教程
  • 热门搜索
    什么是褒义词 什么叫双开 什么叫红颜知己 过生日送什么礼物 basic是什么意思 框剪结构是什么意思 路虎揽胜运动版 button是什么意思 xd股票是什么意思 维生素c价格