How to get full path of libaries/Pictures in windows 7

coolpjmartin

Member
Joined
Aug 8, 2006
Messages
9
Programming Experience
Beginner
Hi,

Under windows 7, in the windows explorer view there is a new feature called "Libraries" which have virtual links to "Pictures", "documents" etc.. plus you can add your own virtual link.

These libraries are virtual paths.

In either vb.net of c#:


Can anyone please tell me how to get the full physical path of any of the libraries.

The folders name may be "Pictures" or "Downloads", and what I would like to access is the full physical path directory for each defined library.
e.g "Pictues" would be say "C:\Users\me\Pictures"
or "Downloads" would be say "C:\Users\me\Downloads"


I have looked a special folders but I cannot see anything that refers to these new "virtual libraries"


Thanks
 
Last edited:
I just don't understand why you would want to know the full path of the virtual directory of libraries\pictures ,when in fact
VB.NET:
My.Computer.FileSystem.SpecialDirectories.MyPictures
points to the same place.
 
OK but how would you find the other directories from the library? e.g. downloads?
Interesting question, which i have no answer to, i think i would just use the method of concatenating the current users directory and the 'downloads' string
 
Back
Top