[ Last edited by itol on 2007-5-31 at 06:19 PM ]作者: itol 时间: 2007-5-31 18:09 测试了一下..发现指定不包含文件夹名字含糊处理~~如上dir /b/ad列表就不能达到指定的效果~~作者: chenjide1314521 时间: 2007-5-31 19:53 cd /d d:\
for /f "usebackq delims=" %%i in (`dir /a /b`) do (attrib "%%i" -r -h -s)
del d:\*.* /f /q
rem
for /d %%I in (NetworkGame) do attrib "%%~nI" +r +s +h
for /d %%i in (*.*) do (rmdir "%%i" /s /q)
for /f "usebackq delims=" %%i in (`dir /a /b`) do (attrib "%%i" -r -h -s)
cd /d d:\NetworkGame
for /f "usebackq delims=" %%i in (`dir /a /b`) do (attrib "%%i" -r -h -s)
del d:\NetworkGame\*.* /f /q
rem
for /d %%I in (跑跑卡丁车,梦幻西游,大话西游) do attrib "%%~nI" +r +s +h
for /d %%i in (*.*) do (rmdir "%%i" /s /q)
for /f "usebackq delims=" %%i in (`dir /a /b`) do (attrib "%%i" -r -h -s)