Batch file %%a是什么意思?(批)
%%a是什么意思?Batch file %%a是什么意思?(批),batch-file,batch-processing,Batch File,Batch Processing,%%a是什么意思? 我理解上下文,但不知道如何使用它。 例如: FOR %%a in (%HELP%) DO echo I don't Know what it means %%a是指for循环将写入的变量的名称 引用自“/”的”: FOR %variable IN (set) DO command [command-parameters] %variable Specifies a single letter replaceable parameter. (set) S
我理解上下文,但不知道如何使用它。 例如:
FOR %%a in (%HELP%) DO echo I don't Know what it means
%%a
是指for循环将写入的变量的名称
引用自“/”的”
:
FOR %variable IN (set) DO command [command-parameters]
%variable Specifies a single letter replaceable parameter.
(set) Specifies a set of one or more files. Wildcards may be used.
command Specifies the command to carry out for each file.
command-parameters
Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead
of %variable. Variable names are case sensitive, so %i is different
from %I.
例1:
产生
A
B
C
D
E
A:1
A:2
A:3
B:1
B:2
B:3
C:1
C:2
C:3
例2:
产生
A
B
C
D
E
A:1
A:2
A:3
B:1
B:2
B:3
C:1
C:2
C:3
您将如何设置希望for语句查找的变量?这似乎与您当前的要求非常不同。你为什么不把这当作一个新问题问呢。另外,如果你觉得我的答案有帮助,请标记为正确,不客气Monacraft@Moonicorn谢谢,现在发布你的另一个问题,我会调查它。你只能每90分钟发布一次。。。除息的