home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / batch.lzh / MAC.BAT < prev    next >
Encoding:
DOS Batch File  |  1987-02-05  |  512 b   |  23 lines

  1. echo off
  2. if not $$ == $$%1 goto repeat
  3. pfile %lastfile%
  4. if %_EXT% == .asm goto defname
  5. if %_EXT% == .ASM goto defname
  6. echo You must supply a file name
  7. goto error
  8. :repeat
  9. pfile %1
  10. :defname
  11. echo assembling %_NAME%
  12. masm %_NAME%,%_NAME%,%_NAME%/N/T/I\include\;
  13. if errorlevel 1 goto error
  14. echo %_NAME% seems to have assembled
  15. goto done
  16. :error
  17. echo ********* ERROR ASSEMBLING %1 **********
  18. :done
  19. shift
  20. if $$%1 == $$ goto exit
  21. goto repeat
  22. :exit
  23.