>>>Hmm... that's another possibility.. I could use GETENV("Temp")
>>
>>Unfortunately (at least on my system), Temp shows as the same short name.
>
>...but GETENV("USERPROFILE") gives the long name, which is still missing the "Local settings\Temp" part. But then, on my machine sys(2023) returns D:\temp, because that's how I have set it in the config.fpw.
>
>I figure Craig has enough ammo now.
Yes. I'm using a combination of sys(2023) and the API call that Mike posted. It's worked in my initially testing. Our testing group will get it on Monday, so I'll know more the first part of the week.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer