473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
2 2050
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
1
by: Siddharth Jain | last post by:
hello I am trying to enumerate the shared folders on a server using the NetShareEnum function. Now, when the server has a password set to access the shared folders, the function returns system...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
1
by: Steve | last post by:
Hi all, I am referring to this article in MSDN : http://msdn.microsoft.com/library/en-us/secauthn/security/logonuser.asp While creating folder on the remote machine, we are specifying the UNC...
24
by: Tiraman | last post by:
Hi, I Build my own dll with my own namespace name and i would like to put it in one place but for the project bin folder so all of the projects will be able to use it . i tried to put the dll...
3
by: Goran Djuranovic | last post by:
Hi All, Does anyone know how to retreive deepest XPath value from XML document by using VB.NET? For example, if I had an XML file like this: <Root> <Customer> <Name>MyName</Name> </Customer>...
1
by: lecnac | last post by:
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is...
4
by: moondaddy | last post by:
I need to edit the text in many files so I'm writing a small routine to do this. First I have a method that loops through all the files in a directory and passes the full file path to another...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.