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...