473,765 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

If I use the
shell32q.NameSp ace(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 DESKTOPDIRECTOR Y

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

Now there are two Desktops (DESKTOP and DESKTOPDIRECTOR Y)

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 2081
Dim s As String =
Environment.Get FolderPath(Syst em.Environment. SpecialFolder.M yMusic)

" Just Me" <ne********@a-znet.com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
If I use the
shell32q.NameSp ace(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 DESKTOPDIRECTOR Y

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

Now there are two Desktops (DESKTOP and DESKTOPDIRECTOR Y)

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.Environm ent which seems to have a wealth of info.
"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Dim s As String =
Environment.Get FolderPath(Syst em.Environment. SpecialFolder.M yMusic)

" Just Me" <ne********@a-znet.com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
If I use the
shell32q.NameSp ace(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 DESKTOPDIRECTOR Y

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

Now there are two Desktops (DESKTOP and DESKTOPDIRECTOR Y)

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
10150
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
1
7269
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 error code 5 (access denied). However, if I know the password to access the shares, how can I specify that in my program?
3
4264
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 of a subclassed DataGridTextBoxColum dos not seem like a practical way to do it. I have subclassed a DataGrid and overridden the OnPaint as such:
1
2235
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 path as per the example. But we get this error "could not find a part of the path". we are prefixing the path with @ symbol and also tried with the escaping the "\\".
24
1476
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 in this place ----> c:\MyDlls\Test.dll And i wrote in my aspx file the following <%@ Import Namespace="Test.MyClass"%>
3
6808
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> </Root> I would like to retreive "\Root\Customer\Name" out of it. Something like:
1
3704
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 quickly becoming more and more urgent. I've tried the code below using the server's local Administrator user name and password. This gets me past the Access denied error but gives me a User
4
23050
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 method (ReadFile). I'm going to use this to edit the file paths in all of my WMP play lists. When I run this the string variable is not being changed using the replace method. Here's what I have: Private Sub ReadFile(ByVal path As String)
34
5368
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 "<pyshell#10>", line 1, in <module> os.startfile("C:\Documents and Settings\Alex\My Documents\My
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.