How can I get all the library locations added to My Music?
For this example, I have added these directories to the library:
E:\My Music
E:\Mp3
I tried:
Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
But it returns:
C:\Users\MyUser\Music
Any libraries added to Media Player should end up in the AppData
directory.
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\Libraries\Music.library-ms"
Maybe this will help.
Are you trying to develop a Windows Store Application? If yes, try with the Windows.Store library as suggested here
MSDN: http://msdn.microsoft.com/it-it/library/windows/apps/windows.storage.knownfolders.musiclibrary
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With