这样?- for /f "skip=1 delims=" %%a in ('Wmic LogicalDisk Where "DriveType='2' and SupportsDiskQuotas='FALSE'" Get DeviceID') do call :s1 %%a
-
- for /f "skip=1 delims=" %%a in ('Wmic LogicalDisk Where "DriveType='3'" Get DeviceID') do call :s1 %%a
-
- :s1
- for /f "delims=" %%i in ('dir /b /a:d %1\FOUND.* 2^>nul') do (
- rd /s /q "%1\%%i"
- )
- goto :eof
复制代码
|