|
|
发表于 2011-6-2 06:56:21
|
显示全部楼层
本帖最后由 fastslz 于 2011-6-2 07:01 编辑
瞧瞧你一个残废XP倒腾了多少人
这个和问题已经跑题了,之前你不是说移动磁盘盘符吗,所以只处理移动磁盘盘符
- @echo off
- for /f "skip=1 delims=" %%a in ('Wmic LogicalDisk Where "DriveType='3'" Get DeviceID') do call :s1 %%a
- goto:eof
- :s1
- if "%~1"=="" goto:eof
- if exist "%1\RECYCLER" del /f /s /q /ah "%1\RECYCLER\*.*" >nul 2>nul
- if exist "%1\RECYCLER" del /f /s /q /a "%1\RECYCLER\*.*" >nul 2>nul
- if exist "%1\RECYCLER" rd /s /q "%1\RECYCLER" >nul 2>nul
- if exist "%1\Recycled" del /f /s /q /ah "%1\Recycled\*.*" >nul 2>nul
- if exist "%1\Recycled" del /f /s /q /a "%1\Recycled\*.*" >nul 2>nul
- if exist "%1\Recycled" rd /s /q "%1\Recycled" >nul 2>nul
- if exist "%1\kvideo_cache" del /f /s /q /ah "%1\kvideo_cache\*.*" >nul 2>nul
- if exist "%1\kvideo_cache" del /f /s /q /a "%1\kvideo_cache\*.*" >nul 2>nul
- if exist "%1\kvideo_cache" rd /s /q "%1\kvideo_cache" >nul 2>nul
- if exist "%1\$RECYCLE.BIN" del /f /s /q /ah "%1\$RECYCLE.BIN\*.*" >nul 2>nul
- if exist "%1\$RECYCLE.BIN" del /f /s /q /a "%1\$RECYCLE.BIN\*.*" >nul 2>nul
- if exist "%1\$RECYCLE.BIN" rd /s /q "%1\$RECYCLE.BIN" >nul 2>nul
- goto:eof
复制代码 |
|