Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resource File Questions
Message
From
16/07/1999 11:55:16
 
 
To
16/07/1999 08:33:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00242233
Message ID:
00242347
Views:
27
>>Hi All:
>>
>>Got a few questions concerning the Foxuser files:
>>
>>(1) Using sys(2005) I was able to determine the default location, but how is that determined? Is it the same for exe's and development environment?
>>
>>(2) When installing a new exe using the setup wizard, when and where is it created?
>>
>>Thanx,
>>Charlie
>
>a Foxuser file is created in the same directory as the exe if there is not one there already. If you include foxuser.dbf in your distribution, then it will use the one you distribute. There is a command line parameter that you can use to have an exe look for a resource file in another folder, but I don't remember what it is (I never use it). Ed...?

The command line switch is -Cfullpathnameforconfig.

C:\VFP6\VFP6.EXE -Cc:\myapp\config.fpw
^^^^^^^^^^^^^^^^
This can also be the name of your .EXE file.

Note the config file can be any name you choose to give it. It does not have to be called config.fpw.

x:\myfolder\myapp.exe -Cx:\myfolder\myconfig.xxx

The config.fpw file can have an entry in it pointing to your resource file:

RESOURCE=c:\myresource\foxuser

Note the name can be anything you want it to be, it doesn't have to be "foxuser", as long as you use this mechanism to tell where it is.

RESOURCE=x:\myfolder\myresource

The extension of the resource file will be assumed to be .DBF, and there will be an associated .FPT file (and a temporary .CDX file while running).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform