RESOURCE = PathOfFPW\FOXUSER_9.dbf COMMAND = DO PathOfFPW\Startup.prgStartup.prg set some stuff like specific paths etc and runs the regfile. The regfile will be loaded afterwards
lcReg = pathtoregfile+'\RegFile.reg' IF FILE(lcReg) THEN DECLARE INTEGER ShellExecute IN "Shell32.dll" ; INTEGER HWND, ; STRING lpVerb, ; STRING lpFile, ; STRING lpParameters, ; STRING lpDirectory, ; LONG nShowCmd IF ShellExecute(0,"open","REGEDIT","/S "+lcReg+CHR(0),lcProg+CHR(0),10)<=32 THEN RUN "REGEDIT /S " +lcReg ENDIF &&ShellExecute(0,"open","REGEDIT","/S " +lcReg+CHR(0),lcProg+CHR(0),10)<=32 *set registry CLEAR DLLS ShellExecute *load registry to VFP SYS(3056,1) ENDIF &&FILE(lcReg)This works for all vfp version, you only need to store the right key.