Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Config.fpw problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00282939
Message ID:
00282970
Views:
16
>>>I'm trying to specify a config file in the VFP shortcut but when I add -CC:\MYAPP\MYAPP.FPW to target line in the properties menu, I get an error saying the name in the target box is not valid.
>>>What am I doing wrong?
>>
>>It should read something like:
>>
>>C:\MYAPP\MYAPP.EXE -CC:\MYAPP\MYAPP.FPW
>>
>>Of course in the above sample, this would only be necessary if the FOXPROWCFG environment variable had indicated another file.
>>
>>Note the space between, the executable name and the parameter. I'd guess that's what's missing.
>
>I know this is obvious but also only needed if config.fpw is not in the same directory as the exe.
>
Hey Jeff,

Yeah, that was my point. Unfortunately, there's no way to know whether or not the environment variable was set. At least not until it's too late. So better safe than spending time trying to figure out why the bloody file isn't being used.:-) I've never tested it, but building the configuration file into the executable might override the setting. However, I'm not a big fan of this, and its not always possible. I do use it, however, with my post-setup program.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform