I used Michaels suggestion and it worked perfectly.
Thanks!
________________________________________
From: Erik Goldoff [egold...@gmail.com]
Sent: Monday, June 01, 2009 11:58 AM
To: NT System Admin Issues
Subject: RE: Dos Nested FOR Loops

 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: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/>  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to