Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Temp directories and ALTER TABLE command
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00583915
Message ID:
00583977
Vues:
54
>>>My second question is: can I put path in config.fwp without drive letter, e.g.
>>>\redp\Work\Temp?
>>
>>Absolutely. This also works:
>>
>>TMPFILES=GetEnv('Temp')
>
>Mark,
>
>I'm already colfused, since I've created config.fpw, added it to the project, then ran it, and sys(2023) still returns d:\temp, as specified under Tools\Options...
>
>?getEnv('Temp') returns c:\Windows\Temp, which is not, what I need for this application.

I understand that. I just gave you an example of what can work. You also can not compile the CONFIG.FPW into the executable. It has to exist as its own file. From VFP help:

When you start Visual FoxPro you can use a default configuration file in the following locations (in order):

The current working directory.
The directory where Visual FoxPro is installed.
The directories listed in the DOS path.

If the default configuration file is not found in these locations, Visual FoxPro uses only the default settings established in the Options dialog box.


Also see VFP Help on Config Files on alternatives on how to specify the Config File to use.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform