NT Batch: Variables in FOR DO loop - Computer Tech Support Forum - Windows - Linux - Mac - Computin
I have the a batch file called Test.bat: -----Test.bat----- SETLOCAL EnableDelayedExpansion SET LIST=Apple Orange SET NAME=XXXXX FOR %%G IN (%LIST%) DO ( SET NAME=%%G START /WAIT CMD /C printname !NAME! ECHO !NAME! SET ......