谢谢了,不错
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off
setlocal enabledelayedexpansion
set bb=
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 (
dir %%i:\##### 2>t >nul
set/p aa=<t
if "!aa!"=="系统找不到指定的路径。" (
echo !bb!:
goto :eof
)
set bb=%%i
)@echo off
setlocal enabledelayedexpansion
set bb=
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 (
set aa=
for /f "tokens=*" %%a in ('dir %%i:\#### 2^>^&1^|findstr /I "specified 指"') do set aa=%%a
if not "!aa!"=="" (
echo !bb!:
goto :eof
)
set bb=%%i
)Originally posted by chishingchan at 2007-12-23 04:59 PM:
最后总结
@echo off
setlocal EnableDelayedExpansion
set drives= CDEFGHIJKLMNOPQRSTUVWXYZ
for /f %%i in ('wmic logicaldisk where "drivetype=3" get FileSystem ^| find /c &quo ...