鼠标右键的项目过多,每次清理回收站都会点错。自己能力不够,有木有可以写一个.bat文件放在桌面上,一运行就可以彻底清空回收站的?
网上看了一下,回收站的具体位置在那里?
你取消隐藏系统文件。可以看到
@echo offfor %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
del /f /s /q %%a:\RECYCLER\*.*
)
echo end...
这只能在XP可用,win7就不行了。因为有保护。
这个是95系统用的。FAT格式的。NTFS的就不能用了。
所以说你现在用纯批处理清回收站不现实。
BAT论坛有第三方可以办到。
温馨提示:答案为网友推荐,仅供参考
第1个回答 2013-12-27
@echo off
echo 即将开始清理系统垃圾文件
pause
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
将上面的内容放在 记事本 里另存为 清理垃圾.bat追问
echo 即将开始清理系统垃圾文件
pause
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
将上面的内容放在 记事本 里另存为 清理垃圾.bat追问
我想清空回收站 而不是清理垃圾 谢谢