Transferring iTunes library after Windows upgrade broke link to some songs I replaced my hard drive and upgraded from Windows Vista to Windows 7.  Some of my songs were in one (or perhaps a few) folders which no longer exist.  The songs exist in a new location.  I know I can just add the new location to my library, but all my playlists with those songs will be broken.  Any ideas on how to approach this?

Maybe there is a file I can open in a text editor, and then replace the beginning of a lot of path names with the new path?
How many songs? If it's just a few, then the easiest way is to do it manually. Just try to play the songs in question, and you'll get a popup saying the file couldn't be found, and offering to choose a new location. Do that, and select the file in its new folder. That will restore the file without breaking your playlists or metadata.

If you have more files than is practical to manually resort each one, you can edit the iTunes Library.xml file to do a find &amp; replace, then scrap your .itl file and import the XML file, which will restore your playlists and files.

For more information on this process, read Apple's support site and this guide.