See
How do I retrieve special folders without relying on Shell.Application? FAQ #16115 and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp>I was using the environment var TEMP for the location of the users temp dir but sometimes it was wrong. I have since changed to using the API call and that seems to be more reliable.
>
>I now need to get the location of the users HOMEPATH. I looked all over and there does not seem to be an API call for it. It looks like I can trim down the temp path till I get to the user name but does anyone have a better way?
--sb--