>>I don't know of any built-in VFP function that can do this.
>>
>>You might run the external command:
>>
>>
>>set > output.txt
>>
>>
>>and parse the result.
>>
>>Or perhaps there is a WSH or API solution, but I don't know those areas very well.
>
>Yes, we were mostly looking for something such as ADIR().
That would be easy to write, using ALINES and then parsing each on the = sign. But what's your real need? Is GETENV() not sufficient?
-- Randy