Glad it has helped you
>This old thread helped me today, so for future reference...
>
>The GETENV limitation still exists in VFP9. Here is the WSH solution I also found today that resolved this problem for me:
>
>
Re: WSH: how to get dfault TEMP dir Thread #
394247 Message #
580846>
>>
>>Note that GETENV('PATH') returns a string of max 255 chars (at least in vfp6sp5). So GetEnvironmentVariable() is more reliable.
>>
Gregory