8 Replies Latest reply: Dec 22, 2010 3:58 AM by holdrege
holdrege Level 1 Level 1
I have all my music on an external disk, but for some reason Itunes 10.x has changed the location of all my music to file://localhost/C:/Documents and Settings/My Music/iTunes/Itunes Music/Music

Rather than going into 1700 songs and resetting their directory, how can I tell iTunes to look at I:/Music where all the media is located?

Thinkpad, Windows XP Pro
  • ed2345 Level 7 Level 7
    Go to Edit > Preferences > Advanced, find the box for the location of the iTunes Media folder, and change it back.

    Note that if the media folder is on an external, and you start iTunes without the external being accessible, iTunes will default back to the local.
  • Katrina S. Level 7 Level 7
    Change it back like ed2345 posted.

    The way I do it, I put the itunes database file on the exHD. That way, if itunes ever gets started before the exHD is available, itunes starts with a blank library and I know something's wrong.

    Also, windows may have assigned a new drive letter the the exHD if you plugged in anything else - an ipod, camera card, USB stick, printer, etc. I've assigned my exHD a permanent drive letter further down the alphabet using Disk Manager in windows.
  • myeika1 Level 1 Level 1
    Hi Katrina.

    Could I just ask you a quick question please?

    To be brief, all my music was on an external HD which is having problems, tomorrow I am going to do my best to retrieve my music from there and put it on a new ext HD. Thus my iTunes Library links/pointers will all be wrong.
    How do I go about getting rid of all the music links held within my iTunes data so I am able to replace them with the new data when I have all my music on my new external drive?
    BTW when I have got it all sorted I will want to put my database file on the new external HD, but how do I do this? - sorry to be a pain!

    Thank you in advance for any help you can give me
  • Katrina S. Level 7 Level 7
    For XP, copy and paste this file to your exHD.
    C:/Documents and Settings/My Music/iTunes/iTunes Library.itl

    You can copy the old exHD files to the new exHD using windows explorer. Then you can assign the old drive letter to the new using disk management. iTunes pointers should still work.
  • holdrege Level 1 Level 1
    That has no effect on the actual library entry for the music. That just changes the default folder for future entries. I need to get all 1700 songs that are in my library pointed back to the right place. I'm sure there is a way, I just can't find it right now. Any experts out there?
  • holdrege Level 1 Level 1
    Is there any editor I can use to edit the .itl file to give it the right pointer for all the songs?
  • turingtest2 Level 9 Level 9
    You can't edit the .itl file directly, however it is possible to use the scripting interface to reconnect the files provided they are in a predictable location. I have a script for this called SwitchLinks.vbs which you are welcome to try out, however it should be possible to reconnect things as follows.

    Connect external drive & check files are visible from Windows Explorer.
    Open iTunes.
    Use *Edit > Preferences > Advanced* to point iTunes at the correct media folder.
    Close iTunes, wait a few seconds for it to close fully and save the library.
    Open iTunes.
    Test that music plays.

    If that still doesn't work, download my script, select a few test files and run the script. If it does the right thing select a larger batch of files and run it again. Repeat until finished.

    In the long run life will be much simpler if the library files are moved to the parent folder of the media folder on the external drive. That way, as mentioned above, if you ever start iTunes with the external offline then you get a prompt to choose or create a library. Just cancel, connect the drive, and start iTunes again and everything will work as it should.

  • holdrege Level 1 Level 1
    Wow! Thanks turingtest2

    This is exactly what I needed. Very well done.