News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Useful autobuild.bat

Started by ecube, February 01, 2006, 04:32:33 PM

Previous topic - Next topic

ecube

save this as whatever.bat


@echo off
rem *Just drag and drop an .asm file on this .bat and it'll build your .exe for you and
rem *delete your left over .obj file.
rem *
rem * By E^cube 2006 (ecube@linuxmail.org)
rem ********************************************************************************


set masmpath=\masm32\bin\
IF "%1" == "" GOTO ERROR
cd "%~d1%~p1"
%masmpath%ML /c /coff /nologo "%1"
%masmpath%LINK "%~d1%~p1%~n1" /out:"%~d1%~p1%~n1.exe" /nologo /SUBSYSTEM:WINDOWS
cls
del %~n1.obj
exit
:ERROR
echo no input file given
pause
exit