批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程
[批处理文件精品]批处理版照片整理器[批处理文件精品]纯批处理备份&还原驱动在线第三方下载
返回列表 发帖

BAT to make the MASM programme autom

  1. @echo off
  2. ::close echo
  3. cls
  4. ::clean screen
  5. echo This programme is to make the MASM programme autom
  6. ate
  7. ::display info
  8. echo Edit by CODERED
  9. ::display info
  10. echo Mailto me : qqkiller***@sina.com
  11. ::display info
  12. if "%1"=="" goto usage
  13. ::if input without paramater goto usage
  14. if "%1"=="/?" goto usage
  15. ::if paramater is "/?" goto usage
  16. if "%1"=="help" goto usage
  17. ::if paramater is "help" goto usage
  18. pause
  19. ::pause to see usage
  20. masm %1.asm
  21. ::assemble the .asm code
  22. if errorlevel 1 pause & edit %1.asm
  23. ::if error pause to see error msg and edit the code
  24. link %1.obj & %1
  25. ::else link the .obj file and execute the .exe file
  26. :usage
  27. ::set usage
  28. echo Usage: This BAT file name [asm file name]
  29. echo Default BAT file name is START.BAT
  30. ::display usage
复制代码

返回列表