此外,它需要自动接管下6个节目。
即。需要在AUTOMATIC事件序列中运行72 x 24个程序,每个事件并行执行6个程序。
@echo on
for /f "tokens=* " %%i in (inputtestfiles.lst) do ( :: i loop iteration (1-24)
for /f "tokens=* " %%k in (All_SA_txt.lst) do ( :: k loop iteration (1-12)
echo %%k
for /f "tokens=* " %%j in (%%k) do ( :: j loop iteration (1-6)
echo "%%~dpj" "%%i"
cd "%%~dpj"
start /b %%~nj %%i /separate :: parallel 6 executions.
cd ..\..
)
pause :: had to PAUSE, to MANUALLY WAIT FOR 6 PROGRAMS TO FINISH. (LIMITATION)
)
)
答案 0 :(得分:0)
parallel -j6 'echo {1}-dpj; cd {1}-dpj; run_program_in_foreground start /b {1}-nj {2} /separate' :::: inputtestfiles.lst All_SA_txt.lst
如果你让它发挥作用,请评论你运行的实际命令是什么。