home *** CD-ROM | disk | FTP | other *** search
/ DOS Wares / doswares.zip / doswares / UTILS / TOOLS / PERUSE.ZIP / PERASM.ZIP / MS.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-03-21  |  673 b   |  36 lines

  1. @echo off
  2.  
  3. if "%1"=="" goto loop
  4.  
  5. ECHO == Assembling module %1
  6. masm %1;
  7. link %1;
  8. exe2bin %1.exe %1.bin
  9. del %1.exe
  10. del %1.obj
  11. goto exit
  12.  
  13. :loop
  14.  
  15. ECHO == Assembling PERUSE with MASM
  16. for %%i in (PERUSE PERUSEE PERUSEX) do call ms %%i
  17.  
  18. if not exist PERUSE.BIN goto error
  19. if not exist PERUSEE.BIN goto error
  20. if not exist PERUSEX.BIN goto error
  21.  
  22. copy /b PERUSE.BIN+PERUSEE.BIN+PERUSEX.BIN PERUSE.COM
  23. del PERUSE.BIN
  24. del PERUSEE.BIN
  25. del PERUSEX.BIN
  26.  
  27. ECHO == PERUSE assembly complete..
  28. dir peruse.com | find "PERUSE"
  29. goto exit
  30.  
  31. :error
  32. ECHO == One or more of the modules did not assemble or link correctly...
  33. ECHO == PERUSE.COM not created.
  34.  
  35. :exit
  36.