This discussion is archived
10501 Views 6 Replies Latest reply: May 26, 2010 1:00 AM by Katrina S.
Currently Being ModeratedMay 24, 2010 10:59 AM (in response to Didou)You can edit the iTunes Library.xml file and use the edited XML file to rebuild the ITL database.
This will keep all metadata except Date Added.
If you care about Date Added, your only option is to re-link the files one-by-one.
iTunes has to have an ITL file to open & run. There are 3 ways it gets one:
1) If no ITL file exists, it creates a new one (blank library)
2) If it finds an existing ITL, it uses it and ignores the XML file.
3) If it finds a damaged ITL, it looks for an XML file and tries to rebuild the ITL from that.
You need to edit the XML file and replace all the paths from D: to E:.
Then damage the itl. Open it in WordPad, select everything, and hit delete. Save it with zero bytes (nothing) in it.
This will force itunes to re-create it by looking at the XML file.
Like you said, be sure to make backup before doing this.iMac 10.5 or WinXP SP3, Other OS, external hard drive, color U2 iPod, 1G shuffle, 2nd gen Nano
Currently Being ModeratedMay 24, 2010 11:18 AM (in response to Didou)You can't edit the iTunes database directly. Which version of Windows are we talking about here? Can you move them back to D:\multimedia\lossless\, at least temporarily? iTunes reports the location of "missing" files as "unavailible" which makes it hard to write a script which does a search & replace on the missing files. I do however have a script which will move things that can be found to a new location and updates iTunes as it goes, thereby preserving all metadata.
An alternative possiblity would be to create a "junction" so that D:\multimedia\lossless actually points to the folder on E:\ then create a script that updates the locations without needing to physically move the files. Once the update is complete the junction could be deleted. Or you could just create the junction and leave things as they are...
Oops, we talking Mac or PC? Talk of drive letters says PC but the sig says otherwise? Macs can also support junctions aka symbolic links...Ignore me...
Message was edited by: turingtest2Various PCs, Windows XP Pro, iPhone3GS 3.1.3, 160Gb 1.1.2/2.0.4, 30Gb 1.3, Nano 1.4 - iTunes 184.108.40.206
Currently Being ModeratedMay 24, 2010 1:29 PM (in response to turingtest2)Most of my music is on my desktop computer which happens to run Windows 7 Home Premium (64-bit if that's of any help. That's the system on which I've moved the files/folders & unfortunately I can't move them back to D:, that drive is being used for something else at the moment.MacBook Pro 2.4GHz (15"4) 4096MB PC5300 DDR-II, Mac OS X (10.6), 80GB iPod Classic (black) - 8GB iPod nano (Chromatic blue) - 16GB iPhone (white)
Currently Being ModeratedMay 24, 2010 1:30 PM (in response to Katrina S.)I think I'm going to take a shot at that. Edit the XML file & then damage the ITL so that iTunes can rebuild it from the modified XML one.
Thanks for the information.MacBook Pro 2.4GHz (15"4) 4096MB PC5300 DDR-II, Mac OS X (10.6), 80GB iPod Classic (black) - 8GB iPod nano (Chromatic blue) - 16GB iPhone (white)
Currently Being ModeratedMay 25, 2010 3:33 PM (in response to Katrina S.)After doing a backup, I edited the XML file then "damaged" the .itdb files. iTunes upon launching recreated everything from the XML & now after a few tweaks in the settings, everything is back to the way it was.
Thanks for the help.MacBook Pro 2.4GHz (15"4) 4096MB PC5300 DDR-II, Mac OS X (10.6), 80GB iPod Classic (black) - 8GB iPod nano (Chromatic blue) - 16GB iPhone (white)