Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » %userprofile% to access someones' My Documents
Re: %userprofile% to access someones' My Documents [message #358400 is a reply to message #358252] Thu, 13 November 2008 07:19 Go to previous message
djlaptop is currently offline  djlaptop
Messages: 160
Registered: February 2003
Location: Hollywood, CA, USA
Karma:
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.




http://i38.tinypic.com/2hcltp1.gif
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: does anyone still play this game online?
Next Topic: RA3 Video
Goto Forum:
  


Current Time: Sat Jul 13 13:26:14 MST 2024

Total time taken to generate the page: 0.00801 seconds