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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/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 使用批处理文件移动特定数量的文件_Batch File_Dos - Fatal编程技术网

Batch file 使用批处理文件移动特定数量的文件

Batch file 使用批处理文件移动特定数量的文件,batch-file,dos,Batch File,Dos,需要有关批处理脚本的帮助,该脚本允许我将循环中的特定数量的文件移动到创建的新文件夹结构中,该结构遵循excel文件,该文件指定了新文件夹编号append(.1,2,3,4,5,6,7…),并且在第二列中具有要移动的相应帧数(121100,44,33…) 文件名的语法是相同的,只是单元格填充的数量在递归地增加 如: 另一个000001.dpx、另一个000002.dpx、另一个000003.dpx等 第一个生成的文件夹应具有类似Shot1的名称,并且应将121个文件移动到从excel读取的新文件夹

需要有关批处理脚本的帮助,该脚本允许我将循环中的特定数量的文件移动到创建的新文件夹结构中,该结构遵循excel文件,该文件指定了新文件夹编号append(.1,2,3,4,5,6,7…),并且在第二列中具有要移动的相应帧数(121100,44,33…)

文件名的语法是相同的,只是单元格填充的数量在递归地增加 如: 另一个000001.dpx、另一个000002.dpx、另一个000003.dpx等

第一个生成的文件夹应具有类似Shot1的名称,并且应将121个文件移动到从excel读取的新文件夹中 第二个文件夹应命名为Shot2,100个文件应从excel的顶部读数移动到新文件夹中 等等


有人帮你吗?

好吧,要求任何人为你写这封信都太过分了,但你可以从以下内容开始:

@echo off
setlocal ENABLEDELAYEDEXPANSION
FOR /f %%a IN ('dir /b') DO (
   CALL SET /a x = !x! +1
   if !x! == 1 (
      CALL ECHO ---------- printing %%a
      CALL TYPE %%a .. 
   )
)
pause

从excel电子表格中读取单元格超出了批处理脚本的能力。现在,如果你有一个集合,可递增的整数,从1开始,需要转到987128746957173,它可能=D