Envirnomental Variables in Visual basic

February 13, 2011 at 15:47:04
Specs: Windows XP
I am using Visual Basic 2008 and I would like to know if there is a system variable for the user's profile? I know there are variables for My Music and My Videos but it would be nice to have the whole thing.

Thanks in Advance.


See More: Envirnomental Variables in Visual basic

Report •


#1
February 13, 2011 at 17:39:38
That'd be UserProfile, but you should never need to use it. Ever.

How To Ask Questions The Smart Way


Report •

#2
February 13, 2011 at 18:34:53
Please elaborate on "Never Use".

Report •

#3
February 15, 2011 at 23:05:00
Literally that. There's not a reason to use it, just like there's no reason to use the root of your drive.
Want to save your settings? Use ApplicationData.
Want to save machine specific settings? Use LocalApplicationData.
Want to save a document? A video? Some music? Use Personal, MyVideos, or MyMusic.
Want to know the folder that houses everything? You can't; it's user definable, and the resulting folders are dependent on the system's initial language.

How To Ask Questions The Smart Way


Report •

Related Solutions


Ask Question