You said it yourself: use CALL. CALL /?
for more information. ________________________________________ From: Joseph L. Casale [jcas...@activenetwerx.com] 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/> ~