[comp.sys.ibm.pc] Nested Batch Files Under MS-DOS

baird@cod.UUCP (John M. Baird) (09/18/87)

in article <874@cg-atla.UUCP>, harty@cg-atla.UUCP (Kevin Harty) says:
> I wish to execute a batch file from within a for loop of another file.
>>    f00.bat
>>         for %%1 %%2 %%3 in (*.plt) do ( f001.bat)
>      The problem is that f001.bat is executed once and  does
> not  return  to  f00.bat.  

Try
      f00.bat
           for %%1 %%2 %%3 in (*.plt) do (command /c f001)
instead. This is standard DOS and should work.

John Baird