Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file %%a是什么意思?(批)_Batch File_Batch Processing - Fatal编程技术网

Batch file %%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

%%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)      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分钟发布一次。。。除息的