@echo off
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /f /q /s %%i:\*.tmp>nul 2>nul
@echo off
set han=cdefghijklmnopqrstuvwxyz
for /l %%i in (0 1 23) do (
setlocal enabledelayedexpansion
set ye=!han:~%%i,1!
del /a /f /q /s !ye!:\*.tmp>nul 2>nul
)
@echo off
for /f "tokens=3* delims=," %%i in ('WMIC Path Win32_LogicalDisk Get Description^,DeviceID^,FileSystem /format:csv^|find /i "固定"') do del /a /f /q /s %%i\*.tmp>nul 2>nul
还有很多方法。。。。。。
Last edited by Hanyeguxing on 2009-9-16 at 04:34 ]