Here is an interesting discussion on HOMEPATH vs. USERPROFILE.

(sfw)]