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