Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetEnv
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: GetEnv
Divers
Thread ID:
00772652
Message ID:
00772710
Vues:
7
Hi Bob,

If you have TMPFILES option in config.fpw than SYS(2023) and GETENV('TEMP') could return different results. See http://fox.wikis.com/wc.dll?Wiki~TmpFiles~VFP for details.


>Usually I use SYS(2023) to get the temp folder path and that is reliable regardless of the OS and user profile settings. However, a smiliar result could be obtained by getenv('temp') command whose remarks section in the online help says:
>*********************************
>Remarks
>Two environment variables are always available: COMSPEC and PATH. You can create your own environment variables with the MS-DOS SET command.
>*********************************
>
>My Question: are there any circumstances under which GETENV('TEMP') will return empty strings or incorrect results?
>
>Best Regards,
>Bob
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform