473,890 Members | 1,659 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 2088
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
10266
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
7281
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
4272
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
2239
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
1485
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
6809
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
3709
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
23056
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
5388
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
9977
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
9816
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11218
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
10802
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
9618
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8009
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...
1
4667
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
4260
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3268
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.