Solved

Can't edit config.fpw in VFP9

Posted on 2016-10-25
5
58 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
  • 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 41

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 41

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now