Hi!

I've been searching for a while, but it seems that I can't find an easy way to get the current user profile folder. I've tried "%userprofile%" environment variable, but it didn't worked (or I'm doing something wrong).

How can I do it? I want to add the value to an string variable.

I actually tried something like:

Dim Userfolder As String = %UserProfile%

I tried with quote marks too, but none seems to do the trick.
What I'm missing?

Thanks!

Dim s As String = Environment.GetEnvironmentVariable("UserProfile")

Yay! It worked. Now I just need to finish up with my logic, and build the interface itself.

Thanks, an REALLY easy solution. (:

You're welcome.

Please mark this thread as solved if you have found an answer to your question and good luck!