makeit.bat

来自「masm32环境下一个获取程序运行参数的例子」· Batch 代码 · 共 37 行

BAT
37
字号
@echo off

if "%1"=="" goto usage
if exist %1.obj del %1.obj
if exist %1.exe del %1.exe

\masm32\bin\ml /c /coff /nologo %1.asm>asm.error
if errorlevel 1 goto asm_error
echo asm ok!

\masm32\bin\Link /SUBSYSTEM:WINDOWS /MERGE:.rdata=.text %1.obj>link.error
if errorlevel 1 goto link_error 

dir %1.*
exit

:asm_error
@echo on
type asm.error
@echo off
del asm.error
exit


:link_error
@echo on
type link.error
@echo off
del link.error
exit

:usage
echo Please use the paramater!
exit


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?