Shouldn't have to. A proper CALL statement should work fine in a single script.
-- ME2 2009/6/1 Erik Goldoff <[email protected]> > have you tried putting that second loop routine in a separate batch file > and using the CALL command to run it ? > > > > Erik Goldoff > IT Consultant > Systems, Networks, & Security > > > -----Original Message----- > From: Joseph L. Casale [mailto:[email protected]] > Sent: Monday, June 01, 2009 1:32 PM > To: NT System Admin Issues > Subject: Dos Nested FOR Loops > > Hey guys, > how comes this doesn't execute the second FOR loop? > > FOR /L %%i IN (%4 1 %5) DO ( > echo Updating Image %%i > imagex /mountrw %1 %%i %2 > FOR %%f IN (*.inf) DO ( > echo Injecting %%f... > peimg /inf=%3\%%f %2 > ) > imagex /unmount /commit %2 > echo Completed Updating Image %%i > ) > > Whats the best way to call an additional loop from within the main one in > dos? > > Thanks! > jlc > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ > <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
