@echo off SET THEFILE=proxyconf.exe echo Linking %THEFILE% M:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\ld.exe -b pe-i386 -m i386pe --gc-sections --entry=_mainCRTStartup -o proxyconf.exe link.res if errorlevel 1 goto linkend M:\lazarus\IDE\fpc\2.2.0\bin\i386-win32\postw32.exe --subsystem console --input proxyconf.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