[Resolved]: Determining the user's home directory
I'm writing an application that cleans out the Firefox browser's cache folder (among other temp folders and such).
Under Windows2k/XP the cache folder is located in:
c:\documents and settings\<username>\applicatiion data\... etc.
How can I determine where the user's home directory is? I've tried using the Environ function but not all Windows installations have the HOMEPATH environment variable defined.
I'm writing an application that cleans out the Firefox browser's cache folder (among other temp folders and such).
Under Windows2k/XP the cache folder is located in:
c:\documents and settings\<username>\applicatiion data\... etc.
How can I determine where the user's home directory is? I've tried using the Environ function but not all Windows installations have the HOMEPATH environment variable defined.
Last edited: