一旦另一个关闭,就开始批处理。 Windows CMD .bat文件

时间:2022-10-01 02:09:06

I have 16 batch files

我有16个批处理文件

1.bat 2.bat 3.bat ... 16.bat

1.bat 2.bat 3.bat ... 16.bat

I will one batch file run 1.bat when 1.bat closed open 2.bat and ...

当1.bat关闭打开2.bat时,我将一个批处理文件运行1.bat ...

Thank you.

1 个解决方案

#1


1  

Make a runbat.bat :

制作一个runbat.bat:

@echo off
for /l %%a in (1 1 16) do (
  call "%%a.bat"
)
echo Done !!!
pause

#1


1  

Make a runbat.bat :

制作一个runbat.bat:

@echo off
for /l %%a in (1 1 16) do (
  call "%%a.bat"
)
echo Done !!!
pause