Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.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
Variables "E;%%d在这个时候是出乎意料的”;在嵌套FOR循环中_Variables_For Loop_Cmd - Fatal编程技术网

Variables "E;%%d在这个时候是出乎意料的”;在嵌套FOR循环中

Variables "E;%%d在这个时候是出乎意料的”;在嵌套FOR循环中,variables,for-loop,cmd,Variables,For Loop,Cmd,我需要为测试创建一组虚拟文件。该集合包含一个月中每天的七个文件。我已经手动创建了一天的文件: 2014-10-30 15:58 25 kl141001.001 2014-10-30 15:58 25 ok141001.001 2014-10-30 15:57 25 po141001.001 2014-10-30 15:57 25 um141001.001 2014-10

我需要为测试创建一组虚拟文件。该集合包含一个月中每天的七个文件。我已经手动创建了一天的文件:

2014-10-30  15:58                25 kl141001.001
2014-10-30  15:58                25 ok141001.001
2014-10-30  15:57                25 po141001.001
2014-10-30  15:57                25 um141001.001
2014-10-30  15:57                25 wn141001.001
2014-10-23  12:29                25 FIRMAOVERDUE_141001.001
2014-10-23  12:29                25 CONTRACTOVERDUE_141001.001
现在我尝试在嵌套FOR循环中创建其余部分,但得到一个错误:

i:\expleo1410>setlocal enabledelayedexpansion

i:\expleo1410>for %%d in  ( 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ) do ( for %%f in ( kl ok po um wn FIRMAOVERDUE_ CONTRACTOVERDUE_ ) do ( copy %%f141001.001 %%f1410"%%d".001 ) )
%%d was unexpected at this time.
我试过: “%%d” %%d %%~d 每次都会得到相同的错误


我做错了什么?

在命令行中,您看起来只需要百分之一:例如
%d