IF FILE('Resourceisbad') * Replace corrupted resource file * savedresource is included in exe file. COPY FILE savedresource.dbf TO myresource.dbf COPY FILE savedresource.fpt TO myresource.dbf DELETE FILE Resourceisbad ENDIF LOCAL lerror lerror = .f. ON ERROR lerror = .t. SET RESOURCE TO myresource ON error IF m.lError MESSAGEBOX('Resource file is corrupted. Re-start application to repair' ) FCLOSE( FCREATE( 'Resourceisbad' )) QUIT ENDIFHowever, I want to specify resource file in config.fpw file using RESOURCE=