bexe.bat
来自「这是一个WIN32汇编程序」· Batch 代码 · 共 33 行
BAT
33 行
@echo off
if exist %1.exe del %1.exe
ml /c /coff /Zi %1.asm
if not exist %1.obj goto mlerr
if exist %1.res goto LinkWithRc
if not exist %1.rc goto LinkWithoutRc
rc %1.rc
if not exist %1.res goto rcerr
:LinkWithRc
Link /SUBSYSTEM:WINDOWS /DEBUG /DEBUGTYPE:CV %1.obj %1.res
echo link with the resource file.
goto pos2
:LinkWithoutRc
Link /SUBSYSTEM:WINDOWS /DEBUG /DEBUGTYPE:CV %1.obj
echo without the resource file.
:pos2
del %1.obj %1.ilk %1.res
goto over
:rcerr
echo Resource file error!
goto over
:mlerr
echo assemble error!
:over
echo on
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?