On WIN2K returns the user profile directory e.g c:\document settings\username
>I think you are right here. I was already wondering, when I wrote you.
>
>BTW, what do you think would GetTempPath return in this case (the case that environment variable TEMP doesn't exist)?
>
>Hilmar.
>
>>Hilmar and if the variable don't exist?
>>taken from the vfp help.
>>Two environment variables are always available: COMSPEC and PATH. You can create your own environment variables with the MS-DOS SET command
>>
>>>>Mark I allways put tempory files on the windows temp directory you can get it with the followin code:
>>>>
>>>>DECLARE INTEGER GetTempPath in win32api Integer, String @
>>>>lctempdir= SPACE(200)
>>>>lnret = GetTempPath(LEN(lctempdir), @lctempdir)
>>>>
>>>
>>>How about:
>>>
>>>
>>>? getenv("temp")
>>>
>>>
>>>Hilmar.
Alexandre Palma
Senior Application Architect