* Create a template file in the Windows ShellNew sub-directory lcfile = GETENV('WINDIR') + "\ShellNew\mdac.udl" lnhandle = FCREATE(lcfile) = FCLOSE(lnhandle) SET CLASSLIB TO Registry.vcx ADDITIVE oReg = CREATEOBJECT('Registry') RELEASE CLASSLIB Registry * Open and, if necessary, create the appropriate registry key oReg.OpenKey(".udl\ShellNew", , .T.) * Set the filename value to the template file oReg.SetKeyValue("FileName", JUSTFNAME(lcfile)) * Close the key. oReg.CloseKey()It assumes that the registry class of the FFC is on the Fox path or is the current directory.