@set INCPATH=D:\masm32\include
@set LIBPATH=D:\masm32\lib
cd /d d:\work\source
ml -c -coff /I %INCPATH% HelloWorld.asm
link -subsystem:windows -LIBPATH:%LIBPATH% HelloWorld.obj
@set LIBPATH=D:\masm32\lib
cd /d d:\work\source
ml -c -coff /I %INCPATH% HelloWorld.asm
link -subsystem:windows -LIBPATH:%LIBPATH% HelloWorld.obj
pause
说明:
批处理中变量的定义:
@set INCPATH=D:\masm32\include
批处理中变量的引用:
%INCPATH%