@set TARGETNAME=ssfbscrsample fbc %TARGETNAME%.bas %TARGETNAME%.rc -s gui @if not exist "%TARGETNAME%.exe" ( goto :EOF ) copy %TARGETNAME%.exe %TARGETNAME%.scr @rem Example of building .scr @rem fbc -x %TARGETNAME%.scr %TARGETNAME%.bas %TARGETNAME%.rc -s gui :EOF