试试这个
- @echo off
- color 1f
- title 清空回收站
- mode con lines=4 cols=23
- echo.
- echo 请稍候 ...
- setlocal enabledelayedexpansion
- for /f "delims=\" %%i in ('fsutil fsinfo drives^|find /v ""') do (
- set var=%%i
- set drive=!var:~-2!
- fsutil fsinfo drivetype !drive!|find "固定">nul && (
- if exist !drive!\RECYCLER rd/s/q !drive!\RECYCLER >nul 2>nul
- if exist !drive!\Recycled rd/s/q !drive!\Recycled >nul 2>nul
- )
- )
- taskkill /f /im explorer.exe >nul
- start "" "explorer.exe"
复制代码
或者用nircmd这个命令行工具
代码 nircmd.exe emptybin
你可以建一个快捷方式然后把nircmd.exe emptybin复制进去 |