@echo off rem check for the image directory ... if NOT EXIST image ( echo ERROR: directory [ image ] NOT FOUND! echo ABORT. exit /b ) else ( cd image ) echo ================================= echo END of MAIN image preparation ... echo ================================= echo. rem start scripts for %%S in ( mount-image.cmd remove-apps.cmd finish-image.cmd ) do ( echo ########## calling [ %%S ] ########## call %%S echo. ) rem go back ... cd .. echo. echo ====== echo READY. echo ======