I have read all of your posts and love that you give your time to help us all get our music back. The solutions above are not working for me, perhaps because I copied my hard drive using the "windows easy transfer" which copied my entire hard drive to my new laptop. The laptop works fine, but now the original pc has an exclamation next to all 7k songs.
I have the localhost prefix you mentioned. I tried using the script, but it only altered 1 song about every minute or so, and wanted me to choose 1-2 or cancel for each of them to decide on a filename. With my library that is simply too much time. Is there a way to get it to just select one of the choices without asking me?
My songs are where they should be, which is the same filename that itunes says it is looking for them under preferences/advanced etc.
I feel like one time this happened I was able to tell itunes to locate the song, and it prompted me with something like "Should I look for more songs in this folder?" and it found them all. I guess that was just a dream.
I am perfectly willing to lose all my ratings etc by deleting the library xml or itl or whatever, but I have a number of them, and dont want to delete something I shouldnt. I have itunes 4 music library extras, " " " genius, itunes 4 library, all the above without the 4 in it, and I have 3 temp files. If I delete them all will itunes reload and find all my songs in their current location?