@echo off call vsvars32.bat if exist %4.obj del %4.obj if exist %4.exe del %4.exe \masm32\bin\ml /c /coff %4.asm if errorlevel 1 goto errasm if not exist rsrc.obj goto nores \masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF %4.obj rsrc.obj iolib.lib kernel32.lib user32.lib if errorlevel 1 goto errlink dir "%1.*" goto TheEnd :nores \masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF %4.obj if errorlevel 1 goto errlink echo 以下のプロジェクトファイルを生成しました dir "%1.*" /b goto TheEnd :errlink echo _ echo リンクエラーが発生しました。 goto TheEnd :errasm echo _ echo アセンブルエラーが発生しました。 goto TheEnd :TheEnd