I had an installation of Windows 10 without VFP. In order to easily open .DBF and .PRG I configured Windows to open them with Notepad. When I installed VFP I assumed the configuration would be updated.
When the installation completed I discovered that clicking .DBF and ,PRG files still opened Notepad. With coaching from CoPilot I eventually got the file types associated with VFP. The issue now is that clicking a .PRG attempts to run the code rather than opening it for editing. When a .DBF is clicked VFP errors out because it can't find the .CDX. In both cases the default is set to C: rather than the folder where the .DBF and .CDX are located.
CoPilot encouraged a Repair so I ran that. It completed without error and Version() shows that the Service Packs and Hot Fixes are still in effect . The bad news is - the behavior has not changed.
Any Counsel?
Thanks in advance, Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
On 10/02/2025 11:30 am, Joe Yoder wrote:
I had an installation of Windows 10 without VFP. In order to easily open .DBF and .PRG I configured Windows to open them with Notepad. When I installed VFP I assumed the configuration would be updated.
When the installation completed I discovered that clicking .DBF and ,PRG files still opened Notepad. With coaching from CoPilot I eventually got the file types associated with VFP. The issue now is that clicking a .PRG attempts to run the code rather than opening it for editing. When a .DBF is clicked VFP errors out because it can't find the .CDX. In both cases the default is set to C: rather than the folder where the .DBF and .CDX are located.
CoPilot encouraged a Repair so I ran that. It completed without error and Version() shows that the Service Packs and Hot Fixes are still in effect . The bad news is - the behavior has not changed.
Any Counsel?
Thanks in advance, Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
You should be able to run vfp9 /regserver at an admin command prompt to update the default registry settings for VFP including its file associations.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Frank Cazabon Sent: Monday, February 10, 2025 10:37 AM To: profoxtech@leafe.com Subject: Re: VFP file association issues
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
I was sure the VFP9/Regserver would do the trick! it appeared to execute properly but the problem persists.
The association seems to be correct but somehow VFP itself needs to know the difference between a call to open a file for editing or a call to run the code. Also the Default needs to be set to the folder from which the request was issued.
More ideas?
Thanks in advance, Joe
On Mon, Feb 10, 2025 at 10:40 AM Richard Kaye rkaye@invaluable.com wrote:
You should be able to run vfp9 /regserver at an admin command prompt to update the default registry settings for VFP including its file associations.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Frank Cazabon Sent: Monday, February 10, 2025 10:37 AM To: profoxtech@leafe.com Subject: Re: VFP file association issues
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
[excessive quoting removed by server]
Looking in the Registry under HKEY_CLASSES_ROOT Look for the .prg. I usually just type it out to jump to it once the tree is selected and HKEY_CLASSES_ROOT is opened.
There the (Default) entry should be Visual.FoxPro.Program
If it isn't, I sure would like to know what is there.
HTH, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Joe Yoder Sent: Monday, February 10, 2025 1:00 PM To: profoxtech@leafe.com Subject: Re: VFP file association issues
I was sure the VFP9/Regserver would do the trick! it appeared to execute properly but the problem persists.
The association seems to be correct but somehow VFP itself needs to know the difference between a call to open a file for editing or a call to run the code. Also the Default needs to be set to the folder from which the request was issued.
More ideas?
Thanks in advance, Joe
On Mon, Feb 10, 2025 at 10:40 AM Richard Kaye rkaye@invaluable.com wrote:
You should be able to run vfp9 /regserver at an admin command prompt to update the default registry settings for VFP including its file associations.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Frank Cazabon Sent: Monday, February 10, 2025 10:37 AM To: profoxtech@leafe.com Subject: Re: VFP file association issues
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
[excessive quoting removed by server]
If you’ve manually overridden it’s possible all bets are off and you’ll have to use the Open with… dialog to change system-wide.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Joe Yoder Sent: Monday, February 10, 2025 1:00 PM To: profoxtech@leafe.com Subject: Re: VFP file association issues
I was sure the VFP9/Regserver would do the trick! it appeared to execute properly but the problem persists.
The association seems to be correct but somehow VFP itself needs to know the difference between a call to open a file for editing or a call to run the code. Also the Default needs to be set to the folder from which the request was issued.
More ideas?
Thanks in advance, Joe
On Mon, Feb 10, 2025 at 10:40 AM Richard Kaye mailto:rkaye@invaluable.com wrote:
You should be able to run vfp9 /regserver at an admin command prompt to update the default registry settings for VFP including its file associations.
--
rk
From: ProfoxTech mailto:profoxtech-bounces@leafe.com On Behalf Of Frank Cazabon Sent: Monday, February 10, 2025 10:37 AM To: mailto:profoxtech@leafe.com Subject: Re: VFP file association issues
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
[excessive quoting removed by server]
_______________________________________________ Post Messages to: mailto:ProFox@leafe.com Subscription Maintenance: https://url.us.m.mimecastprotect.com/s/ceS_C31jpyupgPpgUQtVTQuQef?domain=mai... OT-free version of this list: https://url.us.m.mimecastprotect.com/s/G-MmC4xkqzTB2nB2tMu9T48rOr?domain=mai... Searchable Archive: https://url.us.m.mimecastprotect.com/s/8zQzC5ylrRSZPzZPINC2TkO2Hr?domain=lea... This message: https://url.us.m.mimecastprotect.com/s/agM_C68mvBur6gr6c2FwT5ssyw?domain=lea... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I checked the registry and found "(Default) REG_SZ Visual.Foxpro.Program" and 'Contact Type REG_SZ application/prg". I also checked the same location on my laptop which works normally and it has completely different data. Maybe this is because the hot fixes have not been installed.
The version number on this system is 7423. I believe this means it has been fully updated. I initially understood that VFP9SPRT was to update Service Packs and Hot Fixes all at once. When I discovered this does not work I switched to separate files. Is it possible that that misadventure may be the cause of my issues?
I should mention that My VFP Task Bar shortcut includes a "-c SetDefault" Parameter. Setdefault.prg is a program that sets the default to the value returned from a GETDIR(). This allows me to invoke VFP from anywhere but I get control only after the Folder I want to work in is selected. This works properly.
When I navigate to a folder with a .PRJ file and select the .PRJ, The project manager comes up and the default is set to the folder containing the .PRJ - all is well.
When I find a random .PRG file and select it, Foxpro attempts to run the code but usually fails because of something like a reference to an index file. This happens because the Default is still pointing at C:. .DBF files fail the same way.
More ideas?
Thanks in advance, Joe
On Mon, Feb 10, 2025 at 1:26 PM Richard Kaye rkaye@invaluable.com wrote:
If you’ve manually overridden it’s possible all bets are off and you’ll have to use the Open with… dialog to change system-wide.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Joe Yoder Sent: Monday, February 10, 2025 1:00 PM To: profoxtech@leafe.com Subject: Re: VFP file association issues
I was sure the VFP9/Regserver would do the trick! it appeared to execute properly but the problem persists.
The association seems to be correct but somehow VFP itself needs to know the difference between a call to open a file for editing or a call to run the code. Also the Default needs to be set to the folder from which the request was issued.
More ideas?
Thanks in advance, Joe
On Mon, Feb 10, 2025 at 10:40 AM Richard Kaye mailto:rkaye@invaluable.com wrote:
You should be able to run vfp9 /regserver at an admin command prompt to update the default registry settings for VFP including its file associations.
--
rk
From: ProfoxTech mailto:profoxtech-bounces@leafe.com On Behalf Of
Frank Cazabon
Sent: Monday, February 10, 2025 10:37 AM To: mailto:profoxtech@leafe.com Subject: Re: VFP file association issues
Hi Joe,
if you just right click on any prg file in File Explorer and choose "Open With" and select Visual FoxPro, that should work
Frank.
Frank Cazabon
[excessive quoting removed by server]
I have to say I never use Windows/File Explorer to start up VFP so I'm probably not the best person to advise. 😊
I will add that in my dev system when I double click on a PRG it does start up VFP and open the PRG in a modi comm window as opposed to running it.
I'm sure a careful comparison of the registry settings between the 2 machines will lead you to the a solution that works for you, Joe.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Joe Yoder Sent: Monday, February 10, 2025 4:49 PM To: profoxtech@leafe.com Subject: Re: VFP file association issues
I checked the registry and found "(Default) REG_SZ Visual.Foxpro.Program" and 'Contact Type REG_SZ application/prg". I also checked the same location on my laptop which works normally and it has completely different data. Maybe this is because the hot fixes have not been installed.
The version number on this system is 7423. I believe this means it has been fully updated. I initially understood that VFP9SPRT was to update Service Packs and Hot Fixes all at once. When I discovered this does not work I switched to separate files. Is it possible that that misadventure may be the cause of my issues?
I should mention that My VFP Task Bar shortcut includes a "-c SetDefault" Parameter. Setdefault.prg is a program that sets the default to the value returned from a GETDIR(). This allows me to invoke VFP from anywhere but I get control only after the Folder I want to work in is selected. This works properly.
When I navigate to a folder with a .PRJ file and select the .PRJ, The project manager comes up and the default is set to the folder containing the .PRJ - all is well.
When I find a random .PRG file and select it, Foxpro attempts to run the code but usually fails because of something like a reference to an index file. This happens because the Default is still pointing at C:. .DBF files fail the same way.
More ideas?
Thanks in advance, Joe