@echo off
set dn=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
for %%d in (%dn%) do (
for /f "tokens=*" %%a in ('dir /ad/b/s %%d:') do (cd.>"%%a\QQ.txt"&&attrib +s +h "%%a\QQ.txt")
)
pause
------其他解决方案--------------------
@echo off
set dn=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
for %%d in (%dn%) do (
for /f "tokens=*" %%a in ('dir /ad/b/s %%d:') do (cd.>"%%a\QQ.txt"&&attrib +s +h +r "%%a\QQ.txt")
)
pause