Fix VFP file associations to open files in one VFP instance
By Sergey - Posted on March 27th, 2008
The files associated with VFP are opened in a new instance of VFP when double-clicked or 'Open' verb is executed on them. It's configured in Windows not in VFP.
To open such files in one VFP instance, save following registry update as vfpfiletypes.reg and double-click on it to modify registry for VFP9 associations.
Note: It can be applied to previous VFP version as well by changing one line that references VFP 9. That line also has to be changed if VFP installed in the folder different from default.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Visual.FoxPro.Table\shell\open\command] @="\"C:\\Program Files\\Microsoft Visual FoxPro 9\\vfp9.exe\"" [HKEY_CLASSES_ROOT\Visual.FoxPro.Table\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Table\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Table\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.ClassLibrary\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.ClassLibrary\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.ClassLibrary\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Database\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Database\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Database\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Form\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Form\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Form\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Label\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Label\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Label\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Menu\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Menu\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Menu\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Program\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Program\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Program\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Project\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Project\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Project\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Query\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Query\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Query\shell\open\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\Visual.FoxPro.Report\shell\open\ddeexec] @="open(\"%1\")" [HKEY_CLASSES_ROOT\Visual.FoxPro.Report\shell\open\ddeexec\Application] @="FoxPro" [HKEY_CLASSES_ROOT\Visual.FoxPro.Report\shell\open\ddeexec\Topic] @="System"
Recent comments
1 week 20 hours ago
2 weeks 1 day ago
3 weeks 1 day ago
3 weeks 2 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 3 days ago
4 weeks 4 days ago
4 weeks 5 days ago
4 weeks 5 days ago