By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,462 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,462 IT Pros & Developers. It's quick & easy.

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

P: n/a
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




Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dim s As String =
Environment.GetFolderPath(System.Environment.Speci alFolder.MyMusic)

" Just Me" <ne********@a-znet.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
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



Nov 20 '05 #2

P: n/a
Thanks, I don't know why but I never think of checking the
System.Environment which seems to have a wealth of info.
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Dim s As String =
Environment.GetFolderPath(System.Environment.Speci alFolder.MyMusic)

" Just Me" <ne********@a-znet.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
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




Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.