Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS environment setting
Message
De
26/06/2001 16:36:49
 
 
À
26/06/2001 07:23:58
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00523413
Message ID:
00523834
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>When I test the GETENV(), I can only get some environments. And if I use SET TESTING=1 in DOS prompt, the run getenv("TESTING"), there's just no return. May I ask why?

If you start up a DOS prompt, you're creating a new Virtual DOS Machine (VDM) which is separate from the 32 bit environment and from other VDMs that may be running. You can test this for yourself - start up 2 DOS prompts, make a SET command in one, then type SET in the other - the value won't appear there.

If you want environment variables to appear globally, in Win9x/ME you can set them in AUTOEXEC.BAT. Under NT/W2K look at System or System/Advanced in Control Panels.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform