Solved

Can't edit config.fpw in VFP9

Posted on 2016-10-25
5
100 Views
Last Modified: 2016-10-25
I need to make some changes to my FPW config.fpw file (because of changes in file addresses in Win 10} .  I open the file in the C:\program files(x86)\Microsoft Visual Foxpro 9\ directory, It opens in Notepad.  I make the changes. Try to save the file and it tells me "Access is denied."  Try the same maneuver in FP9 itself using Modify File config.fpw, and a variation of the same thing occurs: I cannot save the file:File access is denied . . . config.fpw."
0
Comment
Question by:Dan Moerman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 3

Assisted Solution

by:jharkins
jharkins earned 250 total points
ID: 41858715
Sounds like either file file is open by some other process, or the read-only attribute on the config.fpw file is set, or the security on that file is set disallowing write access.

Once you are sure no other process has the file open, check on the read-only attribute by right clicking the config.fpw file, selecting "Properties", and making sure the readonly box is not checked.

Other than that if you are on a network the userid you are using may not have permission to edit the file.  Check the security settings on the file by right clicking, clicking on "Properties", and selecting the security tab. You should be able to see if your userid, or a group you are a member of, has write privileges for the file.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 250 total points
ID: 41858821
No, CONFIG.FPW is not open in another process obviously.
This is caused by Windows security which does not allow to make changes in the Program Files (x86) folder and its subfolders.

You have many options, e.g.:
1) You may update the config outside VFP 9 in e.g. Notepad executed as Administrator
2) You may execute VFP9 as Administrator and update the config ...  MODIFY COMMAND SYS(2019)  is good command to do it
3) You may use config in your working folder which is specified in the VFP 9 starting icon (it is obvious to have different configs for different projects maintained in separate folders). Working folder does not have security restrictions.
0
 

Author Comment

by:Dan Moerman
ID: 41858891
Both number 1 and number 2 worked.  I didn't understand number 3.  What is the "VFP 9 starting icon"?
Thank you jharkins and pcelba.  Dan
0
 
LVL 42

Assisted Solution

by:pcelba
pcelba earned 250 total points
ID: 41858930
OK, not the icon but the starting link on Desktop or in the Start menu. The link contains VFP9.EXE location in Program Files (x86) and starting folder which is used for app development.

If the starting folder is not defined then VFP creates projects in some writable folder under user profile.
0
 

Author Closing Comment

by:Dan Moerman
ID: 41859094
Well, I still don't get all of it, but my immediate problem is solved; my config.fpw file is working fine now. Many thanks.  I need to learn more about running things as Administrator.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Database Upscaling 9 124
Errors with Visual Foxpro setup Wizard 5 65
FoxPro in WIndows 10 23 7,313
Foxpro 64bit decoding 8 219
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question