|
|
楼主 |
发表于 2011-6-17 18:29:50
|
显示全部楼层
本帖最后由 ygqiang 于 2011-6-17 19:37 编辑
- 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
- if "%~1"=="" goto:eof
- if exist "%1\FOUND.000" rd /s /q "%1\FOUND.000" >nul 2>nul
- cls
- if exist "%1\FOUND.001" rd /s /q "%1\FOUND.001" >nul 2>nul
- cls
- if exist "%1\FOUND.002" rd /s /q "%1\FOUND.002" >nul 2>nul
- cls
- if exist "%1\FOUND.003" rd /s /q "%1\FOUND.003" >nul 2>nul
复制代码 类似这种代码,应该如何修改呢? |
|