>>?GetEnv("USERPROFILE")
>>
>>Works under my W2K, don't know about XP.
>
>Should work under XP as the same environment variable exists in XP. All sorts of interesting bits of data when you open a command prompt and type SET. :)
...which I didn't do: I launched VFP7, typed ?gete( and intellisense did the rest :).