@echo off
setlocal enabledelayedexpansion
set n=0
for %%i in (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) do (
if exist %%i:\5566.TXT set /a n+=1&&set pan!n!=%%i
)
echo 找到第一个分区 %pan1%
echo 找到第二个分区 %pan2%
pause
@echo off
setlocal enabledelayedexpansion
set n=0 m=0
for %%i in (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) do (
if exist %%i:\5566.TXT (
set /a n+=1
set pan!n!=%%i:\
call call e
详情回复
发表于 2021-6-12 22:56
@echo off
setlocal enabledelayedexpansion
set n=0
for %%i in (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) do (
if exist %%i:\5566.TXT (
set /a n+=1
set pan!n!=%%i:\
call call echo 找到第!n!个5566.TXT,赋值到变量pan!n!,在分区%%pan!n!%%
)
)
pause
@echo off
mode 120,50
set n=1
:loop
set pan=
for /f "tokens=%n% delims= " %%a in ("c d e f g x z") do (set pan=%%a)
if /i "%pan%a"=="a" goto end
echo %n%
if exist %pan%: (dir /s %pan%:\|findstr /i 5566.txt)
set /a n+=1
goto loop
:end
echo 检查完毕
pause
exit