CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2001
    Location
    Dallas, Tx, USA (originally fromIndia)
    Posts
    154

    Question Path to the User Directory

    Hi all:
    In my program, i need the path to the directory of the current logged in user(documents and settings\userx). If stored in the reg, where can i locate it, or is there an environment variable to ge the values.
    Thanx,
    Preetham.

  2. #2
    Join Date
    May 2002
    Location
    Texas
    Posts
    222
    %userprofile%

    All you have to do is open a DOS prompt and type in "set".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured