@echo off rem ************************************************************************ rem These scripts expects the following environment [change paths to suit]: rem rem path += c:\dev_tools\machxl62;c:\dev_tools\nMake; c:\dev_tools\vantispro\ rem minc_path = c:\dev_tools\machxl62 rem lm_license_file = c:\flexlm\license.dat rem rem ************************************************************************ rem @echo on echo. > c:\temp\prog.log echo ----- prog.bat log ------ >> c:\temp\prog.log del c:\temp\*.out if "%1" == "" goto do_all if "%1" == "all" goto do_all if not exist .\%1\%1.chn goto nosuchfile_progone echo. echo Starting on %1.chn echo ------------------------------------------------------------- time /T >> c:\temp\prog.log c:\dev_tools\vantispro\cmd_mpro -i .\%1\%1.chn -z 3 IF errorlevel 1 @echo %1 has ERRORS >> c:\temp\prog.log if not errorlevel 1 @echo %1 programmed successfully >> c:\temp\prog.log echo. >> c:\temp\prog.log goto end :do_all echo. echo Starting on to re-program ALL plds echo ------------------------------------------------------------- time /T >> c:\temp\prog.log c:\dev_tools\vantispro\cmd_mpro -i all.chn -z 3 IF errorlevel 1 @echo all.chn had ERRORS >> c:\temp\prog.log if not errorlevel 1 @echo All plds programmed successfully >> c:\temp\prog.log echo. >> c:\temp\prog.log goto end :nosuchfile_progone echo ERROR: %1.chn does not exist! >> c:\temp\prog.log echo. :end time /t >> c:\temp\prog.log echo prog.bat Done! >> c:\temp\prog.log echo. echo Summary of make job: echo ------------------------------------------------------------- type c:\temp\prog.log