Board logo

标题: BAT to make the MASM programme autom [打印本页]

作者: bailang110    时间: 2012-12-3 21:11     标题: 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
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2