必须开启变量延迟 @echo offsetlocal enabledelayedexpansionfor %%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 (set dn=%%iif exist !dn!:\ (for /r !dn!:\ %%h in (%filename%) do echo %%h>>results.txt))
6225588585
是字母