和批处理有关,for %%i in (A B C D E F G H I J K L M N O

2024-12-30 07:43:09
推荐回答(3个)
回答1:

必须开启变量延迟

@echo off
setlocal enabledelayedexpansion
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 (
set dn=%%i
if exist !dn!:\ (for /r !dn!:\ %%h in (%filename%) do echo %%h>>results.txt)
)

回答2:

6225588585

回答3:

是字母