Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Config.FP - 2 questions to end the horror!!!

Status
Not open for further replies.

Goofus828

Programmer
Nov 9, 2005
127
US
Hi all, I appeal to the vast knowledge on this site.

These question relate to Foxpro 2.5 for DOS

First question: I've read other posts about including the Config.fp into the project. Does this included one in the exe ignore the one sitting in the folder with the exe?

Second Question: My application is running on the network. Where should the TmpFiles point to in the config.fp? I've read on this site and others that it should point to a local drive instead of the network.

Thanks for the feedback.
 
For your second question, yes, it's better to point to a local drive for temp files. Your app will run faster.

Tamar
 
Goofus828,
I have never included the config.fp in my project... as far as I am aware, any instance of the config.fp in the directory will be the one that is used... I can test this later, and get back to you, but I don't have a 2.x install "on me" at the moment.


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
You should be aware that TMPFILES configures only DRIVE !
If you specify only tmpfiles, TMP files will be created in current directory of this drive.
But you can also set SOFTWORK, PROGWORK and EDITWORK where you can specify drive and directory.

Tomas
 
I think you mean SORTWORK not SOFTWORK...


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Ok so what I can gather my Config.fp should look like this for starters:

TmpFiles = c:
SortWork = \Temp


ProgWork and EditWOrk are N/A for this application.

Now these settings will hold true even if I'm working on XP?

Scott I'll try and test including the Config.fp in my app and see what happens.
Tamar - Thanks, I kind of though this was true.


 
On NT (including 2000 and XP) you should have also
MEMLIMIT=100,1024,8000 for using only 8MB RAM. Otherwise foxpro catch very much of XMS ram and system will be significantly slower.

I don't know about editwork, but I think progwork is for program cache. Fox uses program cache everytime so you should have it there.

Tomas
 
SORTWORK is used in index building. You should definitely have it, as it will make managment of the "old" files easier to maintain.


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
btw you can start foxpro or foxpro exe with your own config file by using a "-C" switch

eg myexe.exe -CC:\myconfigs\myconfig.fp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top