echo off if "%1" == "" goto jrdir if not exist \%1\nul goto baddir cd \%1 goto start1 rem standard jr directory :jrdir if not exist \jr\nul goto baddir cd \jr :start1 if not exist tools\nul goto badtl if not exist dp1.exe goto badexe if not exist dp2.exe goto badexe if not exist sel1.exe goto badexe dp1 df=dp.ddm "pg=sel1 pf=tools\jr10.par as=1" if "%1" == "" cls goto end :badexe echo ----------------------- echo - Program not FOUND - goto end :badtl echo ------------------------------- echo - TOOLS Directory not FOUND - goto end :baddir echo ------------------------- echo - Directory not FOUND - :end if "%1" == "" cd\ ~~~~~~