@echo off SET THEFILE=proxytest.exe echo Linking %THEFILE% M:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\ld.exe -b pe-i386 -m i386pe --gc-sections --subsystem windows --entry=_WinMainCRTStartup -o proxytest.exe link.res if errorlevel 1 goto linkend M:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\postw32.exe --subsystem gui --input proxytest.exe --stack 262144 if errorlevel 1 goto linkend goto end :asmend echo An error occured while assembling %THEFILE% goto end :linkend echo An error occured while linking %THEFILE% :end