Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

ZvezdanD
Posts: 3225
Joined: Thu Jun 08, 2006 7:40 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ZvezdanD »

Davidgoeson wrote: Thu Dec 10, 2020 11:57 am Does the addon update Artwork location too in the database?
The Artwork paths are stored in the database as filenames only, without the drive\folders part. It seems that MM allows only artwork files in the same folder with the corresponding media files. So, if you have moved your artwork files together with media files, they should be visible after updating paths of media files in the database.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
ToxicRed
Posts: 1
Joined: Mon Jan 04, 2021 7:44 am

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ToxicRed »

Hi! I made an account just to share my experience.

I just transferred my music and MediaMonkey files across 3 drives (2 computers). I followed the instructions in the Wiki which involved copying all of my music files/folders from my first PC to a usb drive, and I also copied my database files. On the new PC I first moved the files to the new location, and then copied my database files into the new MediaMonkey appdata folder. In MediaMonkey, it showed all of my playlists, but the media files were greyed out.

And then I used your script to make everything work. I was confused at whether I needed to check the "update paths" option, but I decided not to.

I entered the old path and my new path, left both check boxes unchecked, and ran the script. In like, 1 second, everything updated and I've got my music and playlists intact! :D :D

THANKS! :D :D :D :D :D :D :D :D :D :D :D :D :D
ZvezdanD
Posts: 3225
Joined: Thu Jun 08, 2006 7:40 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ZvezdanD »

ToxicRed wrote: Mon Jan 04, 2021 7:51 am Hi! I made an account just to share my experience.
:) I am glad that you found my script useful.

By the way, the option "Update paths in database only for files that exist at new location" tells the add-on to check if the media files really exist at the specified New path before updating their location in the database. Otherwise, the add-on blindly updates these paths, even if the files are not there.

If that option is turned on, the add-on is checking the existence of each file, which could be time consuming. However, its use is recommended just to be sure that all files are correctly transferred to the new location.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
andyh100
Posts: 2
Joined: Mon Jan 25, 2021 5:17 pm

Error running MM_HDD_Serial.vbs script

Post by andyh100 »

Running V 4.1.26.1896 (lifetime licence) in portable mode under Windows 10. I've recently swapped out the hard drive with the program and MP3 collection and now MM shows all music as greyed out. The new drive has the same data structure as the previous one. I already had the MM_HDD_Serial.vbs script on my system from the last hard disk change.

When I try to run it, it immediately comes up with the error:

Error happened during script execution: ActiveX component can't create object: 'SongsDB.SDBApplication'

That has me stumped I'm afraid. Any help will be appreciated.
andyh100
Posts: 2
Joined: Mon Jan 25, 2021 5:17 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by andyh100 »

Prior to my query being moved here I wasn't aware of this particular script.

I've now run it, and now MM successfully sees the MP3 collection on the new hard drive.

So problem solved.
Logan5
Posts: 45
Joined: Mon Jul 13, 2020 3:01 pm

Updating Location of Files on New Computer

Post by Logan5 »

I have done this before, but with MM3. I just installed MM4 on a new computer, but when I ran the script to update the database, my files wouldn't play. After running the script, they appeared black, but when I clicked on one to play, the whole list turned gray again. I am also really confused about exactly how to run the script, specifically I don't know which drive to choose for the old drive and old path and which to choose for the new path. I have copied all of my music over from my old computer. It was in a folder called Music on This PC of my old computer. I transfered this to a folder called Music under my username on the new computer. I think this means they are both using the same drive, but I keep hearing references to a D drive? This is very confusing to me.

I know this question might have been answered on here before, but I am a bit "illiterate" when it comes to technology and need things spelled out step by step. Also, reading through the explanation of how to run the script here https://www.mediamonkey.com/forum/viewt ... =2&t=63823 has only confused me more, unfortunately.
Logan5
Posts: 45
Joined: Mon Jul 13, 2020 3:01 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by Logan5 »

Since my last post was not answered, I will ask simply: how do you know what the old drive is and what the new drive is?
ZvezdanD
Posts: 3225
Joined: Thu Jun 08, 2006 7:40 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ZvezdanD »

Their principle is similar with the Find/Replace input boxes in any text editor - with Old you specify what you want to update and with New you specify with which you want that updated.

If you had the old drive in the same computer where is now the new drive, they both could have the same drive letter, but it is most likely that they don't have the same serial number.

The Usage section on the web page of the add-on is more detailed than that on the first post in this thread. You visited that page already when you downloaded the add-on. You can get it opened in your default web browser if you click on the version number displayed in the top-right corner of dialog box of this add-on.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Logan5
Posts: 45
Joined: Mon Jul 13, 2020 3:01 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by Logan5 »

Thank you. I read through that also, but I am still somewhat confused. I transferred all of my media files from my old computer to my new computer. The old drive was C/myusername/Music, and I made a "Music" folder on the C drive of the new computer and put it there. The new computer has my same username, so it seems that the old path and new path will look identical? When I run it, however, even though all of the files are black, as soon as I click on one to play it, it grays out (and all of the other files start to gray out as well). I am still not sure what I am doing wrong. I don't think my new computer has a drive called D. Again, I am not too familiar with technology, so there may be a simple point I am missing. Thank you for your time.
ZvezdanD
Posts: 3225
Joined: Thu Jun 08, 2006 7:40 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ZvezdanD »

As I said, even if your old and new drive have the same drive letter and the same folder structure, that doesn't mean that they could be seen by program as the same drive. MediaMonkey differentiate drives by serial numbers, not by drive letters.

Your old and new drives have different serial numbers, unless you copied manually that number to the new drive, which is highly unlikely since you said that you are not familiar with the technology.

This add-on cannot display anything that you don't have. It displays in the Old drive combo box all drives that are already added to your database/Library. These are the same drives that you have displayed in the Location sub-folder of the Entire Library collection.

If you let the program to scan the new drive adding its media files to the old database, you will end up with the database containing duplicates with files both from the old and new drive. This is reason why you should turn off the automatic scanning for new media files after you attach your new drive until you finish with this add-on. I think that I mentioned that fact somewhere.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Logan5
Posts: 45
Joined: Mon Jul 13, 2020 3:01 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by Logan5 »

Thank you so much! That worked, and not only that, it worked very quickly (because I had manually copied my files)! Great program, great explanation for us "technologically challenged" people, and thanks so much for patiently answering my questions!
ZvezdanD
Posts: 3225
Joined: Thu Jun 08, 2006 7:40 pm

Re: Update Location of Files in Database 1.3 (2012-06-12) [MM2+]

Post by ZvezdanD »

There is new version of the add-on that works with MM v5.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply