回复 8# apang
如果是这样的代码如何写?- @echo off
- 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"
复制代码
|