Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!sri-spam!ames!sdcsvax!nosc!cod!baird From: baird@cod.UUCP (John M. Baird) Newsgroups: comp.sys.ibm.pc Subject: Re: Nested Batch Files Under MS-DOS Message-ID: <830@cod.UUCP> Date: Fri, 18-Sep-87 14:16:24 EDT Article-I.D.: cod.830 Posted: Fri Sep 18 14:16:24 1987 Date-Received: Sun, 20-Sep-87 04:03:14 EDT References: <874@cg-atla.UUCP> Organization: Naval Ocean Systems Center, San Diego Lines: 13 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