Using shell32q.NameSpace(k) Or how to find Shared Music path

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

If I use the
shell32q.NameSpace(k)

and the Parent property I can develop, for example, the path to My Music.

Actually it ends with Desktop but Desktop can also be traced by using Parent
to the drive. This desktop is referred as DESKTOPDIRECTORY

However, if I try to develop a path to Shared Music I get to Desktop/My
Computer.

Now there are two Desktops (DESKTOP and DESKTOPDIRECTORY)

My Music ends with the second and Shared Music with the first which does not
have a parent.

The correct directory for the first one includes the All Users folder (where
the second uses the Username folder).



Does anyone know how to get a path to Shared Music

or All Users\Documents??

Any suggestion of what I could try would be appreciated.



PS

Strange. Go to C:\Documents and Settings\All Users\Documents

and click Shared Music and you get

C:\Documents and Settings\All Users\Documents\My Music

not

C:\Documents and Settings\All Users\Documents\Shared Music
 
Dim s As String =
Environment.GetFolderPath(System.Environment.SpecialFolder.MyMusic)
 
Thanks, I don't know why but I never think of checking the
System.Environment which seems to have a wealth of info.
 
Back
Top