|
|
|
|
|
|
|
|
|
|
|
|
|
Re: %userprofile% to access someones' My Documents [message #358400 is a reply to message #358252] |
Thu, 13 November 2008 07:19  |
djlaptop
Messages: 160 Registered: February 2003 Location: Hollywood, CA, USA
Karma: 0
|
Recruit |
|
|
You can also get the path of "My Documents" for the current user by reading the registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal
You may have to resolve the %USERPROFILE% variable within the string returned from the registry.
|
|
|