in

ASP.NET Weblogs

ChuckOp's eXPeriences

Commentary on software design, development and management - plus much more.

Windows Media Player not adding albums to media library

Have been moving my music collection around and noticed that nearly half of the files didn't get added to the media library when monitoring the folder, or manually scanning it.

After investigating for awhile, I discovered that folders marked with the System attribute were being ignored by the media library.  I guess this is understandable, but left me with two questions:  First, how did only certain folders get this attribute set.  Secondly, how do I go about changing it?

About 130 of 410 total folders had the System attribute set.  I don't know exactly how it got set, but it may have something to do with the folders being stored temporary on a Samba-based file share.

My first though was to type attrib -s *. /s /d

However, while *. should match only files without extensions (which includes directories), attrib matches all files when given the *. wildcard pattern.  I was worried that the various WMP related files such as AlbumArt* and Folder.jpg and Thumbs.db would also lose their System attribute.

Executing the attrib command above did attempt to reset those files as well, but since they are also marked with the Hidden attribute, and error was presented and attrib moved on.

What I learned was that with Windows Media Player version 10, the media library will not automatically add folders that are marked with the System attribute.  If you are having problems getting artists or albums to import correctly into the media library, check the System attributes.

Published Mar 18 2005, 12:05 PM by ChuckOp
Filed under: ,

Comments

 

roka said:

how would u check the system attribute........im having this same problem. how did u completely fix it.
March 29, 2005 11:04 PM
 

Charles Oppermann said:

To find out if a directory entry has the System attribute set, you have to open the Command Prompt. Then navigate to Music folder, which is usually under your profile as "My Music"

cd /d "%USERPROFILE%\My Documents\My Music\"

Then get a listing of the directories that have the System attribute set:

dir /ads /s

This lists directories only that have the System attribute set. Then use the ATTRIB command to reset the System attribute:

attrib -s *.* /d /s

This will turn off the System attribute on all files and directories. A number of files that are hidden will generate errors, but that can be ignored.

Good luck!
March 30, 2005 12:08 PM
 

roka said:

tell u wat.........my music folder is actually in "D:\MUSIC\My Music" thats where my music is all stored...u think u can help me out with that.....i have 2 drives just incase u want to noe. my music is in the second drive "D:\MUSIC\My Music"
March 31, 2005 2:38 AM
 

Charles Oppermann said:

If the music is in d:\music\my music then you type the following at the command prompt:

attrib –s “d:\music\my music\*.*” /s /d

You’ll get a number of errors on files like Desktop.ini, Thumbs.db, Folder.jpg and AlbumArt*.jpg

Those errors are okay. The directories will have their system attribute reset.
March 31, 2005 11:30 AM
 

TrackBack said:

^_^,Pretty Good!
April 10, 2005 5:55 AM
 

Whitney said:

Okay, when I look at my attributes all I see is the letter A....what can I do now?

May 21, 2007 10:28 PM
 

Eric said:

Thanks Chuck!  Worked for me.  No idea why the system attribute was set on all my music after I reinstalled Windows.

May 25, 2007 8:04 PM
 

Ivan said:

Thanks!!! Same here - a reinstall of XP had set the S attribute on my music folders. I have been "touching" the same drive with XMMMS on Ubuntu, so perhaps did it? Who knows? Any, all fixed now and many thanks.

May 26, 2007 2:45 AM
 

Mr. Tuna SWE said:

Hi! Have the same problem, but with my image directorys. Tried out the way you explained above, but with no results. None of my directorys has the attribute set. But stil the WMP can't find the directorys. I'am usin win xp.

May 31, 2007 12:15 PM
 

François said:

Great ! Many thanks ! I have been looking for a long time to make this work out and finally found it !

June 17, 2007 6:24 AM
 

Andreas said:

Wow!!!  been searching for months.  Had moved all my music to my d drive and wmp only scanned certain folders.  Was driving me crazy.  Ran the attrib command and wammo all files/folders found!!  Thanks.

August 2, 2007 4:44 PM
 

Sofia said:

I have been searchign for so long, but i didn know how to, but now i know how to do that, and i have added more 650 songs in my media player

August 7, 2007 9:16 PM
 

Jerome said:

Thank you so much, I ran the command and had about 1,000 things scroll by way too fast to read any of it. But WMP is adding all the files now.

September 8, 2007 3:45 AM
 

Kambodia said:

If my music has many sub-directories, must I access every single folder manually to change the attributes?

Thanks in advance.

September 11, 2007 5:20 AM
 

Mike said:

Brilliant solution!  More helpful than the Micrososft site.  I bought a new Vista computer and half my music colleciton wasn't showing up. This did the trick.  Microsoft bug???

September 12, 2007 7:52 PM
 

Daniel said:

Thanks for the attrib trick ( attrib -s *.* /d /s), it's working.

September 24, 2007 7:52 PM
 

Brian said:

There once was a man named Chuck,

who gave a man named Brian some luck.

Chuck made  Brians day,

so Brian said Hey,

THANK YOU CHUCK FOR YOUR HELP AND LUCK!

Thanks bro i been workingon this for way too long.

October 20, 2007 8:40 PM
 

rio said:

thanks for the help.. certainly solved all my problems!

thumbs up!

didn't know we all face the same problems don't we..

October 21, 2007 7:23 PM
 

phil said:

Excellent bit of advice,

I'd redirected my music folder to another drive and it seems vista had set the system attribute on some of the folders for some reason.

This sorted it out.

Cheers,

November 17, 2007 7:25 AM
 

Marce said:

Thanks, it works....

Been trying for days to find the solution...

November 26, 2007 4:44 AM
 

Damien said:

Thank you for all, it works PERFECT

I've been looking for a fix for 6 months

Thanks a lot

November 26, 2007 2:49 PM
 

andy said:

I know this sound stupid, but how do you open command promt to start with.

Thanks

December 5, 2007 1:55 PM
 

nyqa said:

andy: type "cmd" in the runwindow. startmenu -> run

Or you can use the windowsbutton on your keyboard + R to get to the runwindow.

"cmd" or "command.com" is the right one to type in.

December 30, 2007 8:32 AM
 

Barry said:

Thanks Chuck,

  This worked perfectly on my Vista Business OS with my music on a mapped network drive.

February 11, 2008 6:58 AM
 

ErikAlex said:

To remove all attrib on your music, so that Windows Mediaplayer finds them, do as follows:

Make a new text file (right click the desktop-New-Text dokument). Type attrib –s “d:\music\my music\*.*” /s /d

and save the file as name.bat. Now run the bat file by double clicking.

February 22, 2008 10:27 AM
 

TommyT said:

Boy am I glad I found this posting.  I recently rearranged/deleted my entire library to start over and nothing except for pictures was making it back into WMP11.  I had tried deleting the databases, etc.  This worked like a charm!

February 25, 2008 9:07 AM
 

DrToonz said:

I tried this and it seemed to work great, EXEPT:

I have TWO external hard drives with music on them (lots). They are in files w/structure like this: j:\My Music 2\Artist\Album\Songtitle....Your fix found 330 or so more songs (of my 110k+), but still there are files/songs there that are not being recognized. The ID3 tags are accurate so I'm just kind of lost. Can you suggest anything?

April 1, 2008 11:56 AM
 

Jeremy Harris said:

Works for me! Thanks!

April 1, 2008 12:14 PM
 

Windows Media Player (wmp) not monitoring folders locally or over network (solution!) « stephen said:

Pingback from  Windows Media Player (wmp) not monitoring folders locally or over network (solution!) « stephen

April 5, 2008 2:43 AM
 

Windows Media Player (wmp) not monitoring folders locally or over network (solution!) « Stephen Sulzberger’s Blog said:

Pingback from  Windows Media Player (wmp) not monitoring folders locally or over network (solution!) « Stephen Sulzberger’s Blog

April 5, 2008 2:46 AM
 

Zuzu said:

thnx Charles Opperman

it did work perfectly

you should b recruited by Microsoft, lol

May 14, 2008 10:39 AM
 

Aaron said:

Wow. Nice find. Worked perfectly.

June 12, 2008 4:34 AM
 

Mat said:

I keep getting "parameter not correct"

June 21, 2008 7:47 AM
 

Nadeem said:

Hey guy i typed this in exactly

attrib –s “C:\Documents and Settings\HP_Administrator\Shared\*.*” /s /d

and then i got this error

– C:\Documents and Settings\HP_Administrator\Shared.*.*

plz help i dont know what to do :(

i did not get any other errors and nothing else poped up if u need to see a screen shot e-mail me at

Nadeem_ishaq35@hotmail.com

THx in advance

July 1, 2008 12:55 PM
 

Nadeem said:

hey its my i have another error lol and i styl need help wiht my first one :P

attrib -s *.* /d /s

when i step in that it says it suppesed yo reset the files but for me it says" Not resetting file....?????? what do i doooo??

July 1, 2008 1:01 PM
 

Nadeem said:

ok i have gotten it to work now but not theres another error... i cant connect to the internet (im on my bros) when i did "attrib -s *.* /d /s" it turned off the System attribute on all files and directories but umm how do i put them back on??  plz help

July 1, 2008 7:13 PM
 

nihil khagram said:

i m devloping a websit for uploading and downloding videos

as well as audio so i wnt to know tht hw to use windows media player in asp.net 2005.. plz help

September 6, 2008 8:38 AM
 

James said:

Thanks, spent a few days on this.  I set my samba server to ignore the system attrib (archive, hidden) and use the permission setting for read only.  I use SWAT, so I do not know the config file text.  This seemed to fix "I cannot load files into Vista Media Center" from my samba share.

September 9, 2008 4:25 PM
 

RD_303 said:

Great fix.  Anyone know how I can get XP (SP3)  to not set the attribute on my music folders in the first place?

Thx

September 18, 2008 4:48 PM
 

Ray said:

Chuck:

You don't know how happy I am that I found your post on this. This issue has been driving me batty for months. I've tried everything I knew, researched, read, and still couldn't get it fixed. When I ran the command to switch the "s" attribute off, BAM, it worked. I feel like I owe you dinner. Or perhaps better these days, a tank of gas for you car.

THANK YOU

September 26, 2008 3:24 PM
 

Cottey said:

Wow it actualy works thanks

October 13, 2008 11:41 PM
 

JKDFlyghter said:

Hey Chuck - excellent fix!

I recovered 240 songs!

November 10, 2008 11:33 PM
 

Bill said:

Awesome job... worked great!

November 14, 2008 9:08 PM
 

KevO said:

Beauty!!! worked a treat just wish i'd found this months ago  Thankyou very Much!!!!

December 21, 2008 11:52 PM
 

Nicht alle Dateien in der Bibliothek | hilpers said:

Pingback from  Nicht alle Dateien in der Bibliothek | hilpers

January 18, 2009 5:24 AM
 

FM said:

I've had a similar problem that required a different solution.

I have albums composed of WMA files with missing ID3 tags on an external USB drive. This drive is monitored by WMP, but it was ignoring the files w/o the tags, and would not add them to the library no matter the library settings or how many times I tried to force the update.

I ended up:

1. Copying the files over to the local personal (default) music folder.

2. Deleting the Media Player database file (you may get away with forcing the library update, but if that doesn't work, there are instructions available at support.microsoft.com/kb/925718).

3. Did a 'find album info' and used the search function to find the correct album.

4. And then did an 'Apply Media Information Changes.'

I wouldn't say this was slick, but it got the job done. My only other advice is that if you have file names such as 01 Track 1.wma, rename the files with the correct names first.

Best of luck.

January 20, 2009 9:04 PM
 

FM said:

And oh yeah,:

5. After the files were updated, I copied the local album folder back onto the external drive, replacing the previous folder. You will want to be sure to copy the entire folder so that the hidden files go with it (or show hidden files first, and then copy them all).

6. I've had mixed luck getting the library to update with the new file location, but if it doesn't, it does not seem to hurt deleting the entire database and letting it rebuild. With WMP, it seem like this is often the best solution, and it has never caused me a problem.

January 20, 2009 9:15 PM
 

PA said:

Excellent advise mate, many thanks for sorting out a problem that has plagued me for months now

March 8, 2009 5:44 AM
 

Salmidach said:

Oh thanks mate you are such a star..

it was really bugging me that quite a few of my albums weren't showing. After re-running Add to Library it found another 800 missing tracks....

March 14, 2009 6:25 AM
 

Rey said:

Great Chuck, I have been wondering around by days, you are great, thanks a lot.

Not even on MS had an answer for that.

March 16, 2009 1:30 PM
 

USZF said:

Thanks man, i'v been suffering for days and now case solved:)

March 22, 2009 8:08 PM
 

Yaman said:

that worked.. thanks a ton.. i have been trying registry settings for hours.. this worked as promised.

March 29, 2009 6:57 AM
 

anshul said:

Thanks man..i was unable to add all the mp3 files and this had plagued me for months ...

April 1, 2009 3:41 AM
 

Rob said:

Wow, thanks a ton! It's 4 years after the original post but saved my life after a reformat and a bunch of different hard drive transfers.  Found all 20,000 of my songs!

April 24, 2009 2:47 AM
 

Windows Media Player Import Problems | Liazy Online said:

Pingback from  Windows Media Player Import Problems | Liazy Online

May 7, 2009 3:04 PM

Leave a Comment

(required)  
(optional)
(required)  
Add