for %%i in (c d e f g) do attrib +s +h %%i:\1 %%i:\2 %%i:\3 %%i:\4
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off
for %%i in (c d e f g) do (
attrib +s +h %%i:\1
attrib +s +h %%i:\2
attrib +s +h %%i:\3
attrib +s +h %%i:\4
)
@echo off
for %%i in (c d e f g) do (
for %%j in (1 2 3 4 ) do attrib +s +h %%i:\%%j
)