Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Create Environment Variables
Message
 
 
To
14/01/1999 10:32:00
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00175925
Message ID:
00176001
Views:
41
Vinod,

You basically can't. The environment variables only exist while the DOS session exists, so once the RUN finishes so do the env vars. You can create a batch file and run that, but only the programs in there will see the env vars, your VFP app won't be able to see them though.

>>Why not use the RUN command, Vinod?
>>
>>>How to Create Dos Environment Variables from vfp...
>>>
>>>(variables which we create in dos with set command...)
>
>I've already tried it....
>
>Pls note that as soon as the dos session is closed, variable is not there..
>
>I tried following
>
>!set myvar=myvalue
>? getenv('myvar')
>
>But it is returning blank..
>
>Pls advs...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform