下面是引用zippy于2004-10-26 3:07 AM发表的 :
用 FOR /R 去找全部. 底下会删掉C/D/E/F/G/H/I各磁碟里所有的Thumbs.db, 没试过, 照理应该可以.
FOR %%I IN (C: D: E: F: G: H: I:) DO (
FOR /R %%I %%J IN (Thumbs.db) DO (
ATTRIB -S -H -R %%J >NUL
DEL /F /Q %%J
.......
语法错误,无法执行。
较笨的写法
------------------------------------------------------------
@echo off
FOR %%I IN (C: D: E: F: G: H: I:) DO (
%%I
cd\
attrib -s -h -r Thumbs.db /s /d >nul
del Thumbs.db /s
)
------------------------------------------------------------