edit paths en masse

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

tadcook
Posts: 111
Joined: Thu Jun 03, 2010 9:12 am

edit paths en masse

Post by tadcook »

I've restored all of my files from backups, and many are in new locations or have paths that don't match what is in the MM database.

For example, when I search for B.B. King, all of the paths are shown like this in the database:

[My Passport]\MUSIC\B.B. King\The Vintage Years (disc2)\06 King B.B. - Don't You Want A Man Like Me.mp3

I want to change all of the [My Passport]\MUSIC\ locations in the database to F:\MUSIC\

I thought I could use Auto-Organize Files to do this, but when I open Auto-Organize I have these two options:

Move and rename files to new destination based on file tags.

or

Copy files to new destination based on file tags.


But I don't want to do either of those things (copy, move or rename). The files are now where I need them, but I need to change all the paths that begin with [My Passport]\MUSIC\ to F:\MUSIC\

I cannot figure out how to do this. I think I need something like this, but I guess this is an add-on or script, which I haven't found:

http://i.imgur.com/xInJz6c.png
tadcook
Posts: 111
Joined: Thu Jun 03, 2010 9:12 am

Re: edit paths en masse

Post by tadcook »

Thank you. But as I noted here, I cannot install it, despite repeated attempts:

http://www.mediamonkey.com/forum/viewto ... =1&t=79042
MMFrLife
Posts: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

Re: edit paths en masse

Post by MMFrLife »

Is My Passport and F: the same drive?
If so, try "locate moved/missing" files after changing the letter to F:\ in Windows, not database .
MM user since 2003 (lifetime lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
😜
tadcook
Posts: 111
Joined: Thu Jun 03, 2010 9:12 am

Re: edit paths en masse

Post by tadcook »

No, it is not the same drive, it just has the same data.

The Western Digital Passport drive failed, but the mp3 data has been restored from backup to a new Lacie drive.
MMFrLife
Posts: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

Re: edit paths en masse

Post by MMFrLife »

MM user since 2003 (lifetime lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
😜
Guest

Re: edit paths en masse

Post by Guest »

tadcook,

I just dummy installed this addon using the .mmip without any problem.

It can then be found in Tools > Scripts > Update Location of Files in Database...

If it doesn't show, then try a manual install of the files:

First change the extension of the downloaded file from .mmip to .zip

Now extract that (in place).

The extracted folder contains:

App.ico
Install.ini (not needed here)
Licence.txt (Information only)
Uninstall.ini
Uninstall.vbs
UpdateLocationOfFiles.vbs

Now copy/move UpdateLocationOfFiles.vbs to AppData\Roaming\MediaMonkey\Scripts - in your user folder.

In the same Scripts folder, you'll see Scripts.ini

Open and add the following to the end of that file and save it:

Code: Select all

[UpdateLocationOfFiles]
Filename=UpdateLocationOfFiles.vbs
Procname=UpdateLocationDialog
Order=91
DisplayName=Update Location of Files in Database...
Description=Update drive ID and/or base paths in database, e.g. after upgrading hard disk
Language=VBScript
ScriptType=0
That's all you need, but if you want to create an optional uninstaller:

Go to AppData\Roaming\MediaMonkey\Extensions

Create a new folder in Extensions called UpdateLocationOfFiles and copy/move the following (previously

extracted) files to it:

App.ico
Uninstall.ini
Uninstall.vbs

Now, go to AppData\Roaming\MediaMonkey\Extensions.ini

Add the following to the end of that file and save:

Code: Select all

[UpdateLocationOfFiles]
Title=Update Location of Files in Database
Description=Update drive ID and/or base paths in database, by Zvezdan Dimitrijevic
VersionMajor=1
VersionMinor=3
VersionRelease=3
VersionBuild=0
Type=script
UpdateURL=http://solair.eunet.rs/~zvezdand/UpdateLocationOfFiles.xml
Start MM.
Post Reply