@echo off rem demo.bat v1.1 for bams cd-rom rem set cdrom=e: if not '%gaddir%'=='' goto next if not exist %cdrom%\read.ams goto error0 set path=%path%;%cdrom%\grads set gaddir=%cdrom%\grads set gascrp=%cdrom%\grads goto next :error0 echo The reanalysis cdrom rom is not mounted on %cdrom% echo --- ---------- ----- --- -- --- ------- -- -- echo Try again goto end echo. :next grads -lc "run demo.gs" :end echo "if the demo did not work, check the path for %cdrom%\grads"