qwaszx
qwaszx

Reputation: 1

Read Windows 7 Registry c#

Need to obtain following path from the registry:

%userprofile%

Upvotes: 0

Views: 279

Answers (1)

Nate
Nate

Reputation: 30636

In C#, you can use this:

Environment.GetFolderPath (Environment.SpecialFolder.UserProfile)

to load up the path to the current user's profile.

Upvotes: 5

Related Questions