[MM2+3] Change Drive-ID after moving Files to a new Drive

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

unnicorn_tired

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn_tired »

Thanks Nyn, then for some other reason it isnt working for me.

OS: XP
Media Monkey: 3.0.3.1183

When i click on "move Device Content" it gives the below error message:
Error #13 - Microsoft VBScript runtime error
Type mismatch 'Change_HDD_Serial'
File:"D:\MediaMonkey3\Scripts\MM_HDSerial.vbs " Line: 1, Column : 0

followed by

Error happened during script execution :
Type mismatch : 'Change_HDD_Serial'

The code within MM_HDDSerial.vbs is exactly as suggested above and in the first post.

The content within scripts.ini is as shown below:

Code: Select all


[HDDSerial]
FileName=MM_HDDSerial.vbs
ProcName=Change_HDD_Serial
Order=46
DisplayName=Move Device Content
Description=Corrects broken links after exchanged harddrive
Language=VBScript
ScriptType=0 
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by nohitter151 »

The problem is that you have saved the script with the incorrect filename. You have it saved as:

MM_HDSerial.vbs

when it should be

MM_HDDSerial.vbs
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

nohitter151 wrote:The problem is that you have saved the script with the incorrect filename. You have it saved as:

MM_HDSerial.vbs

when it should be

MM_HDDSerial.vbs
Ok sorry I believe I made a typo while copying the error message. The file name was correct and still it gives the below error.

When i click on "move Device Content" it gives the below error message:
Error #13 - Microsoft VBScript runtime error
Type mismatch 'Change_HDD_Serial'
File:"D:\MediaMonkey3\Scripts\MM_HDDSerial.vbs " Line: 1, Column : 0
Scripts I use: Advanced Report
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by nynaevelan »

Open the file in notepad and make sure the first character is a '. That's an apostrophe if you cannot see it. :wink:

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

nynaevelan wrote:Open the file in notepad and make sure the first character is a '. That's an apostrophe if you cannot see it. :wink:

Nyn
hello,

Yes the first line in the MM_HDDSerial.vbs is '1. Shutdown MediaMonkey

Is that what you mean?

in Scripts.ini the first line is [HDDSerial] without an ' which is correct i believe.

Let me know if I am wrong.
Scripts I use: Advanced Report
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by nynaevelan »

I am not sure why it is not working for you, it looks like you have the file setup correctly. The only thing I can think of to try is to make sure the file is saved in the \Mediamonkey\Scripts\ directory and that it has the .vbs extenstion not .vbs.txt. If that doesn't work, you could try this one. Once you run the installer it can be found at Tools -- Deisync -- Export Complete Database. Your settings will be similar to this:

Image

Just enter in your info in the directory, drive letter and drive type sections. Or you can try the one that is a few posts before this one, I never used that one so I am unsure what the settings should be.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

Thanks Nyn, but its not working still :cry:

The above suggestion you gave for DEISync has to be run on the Home PC and then I need to transfer the DB to the Work laptop is it?

I dont have access to the Home PC now, so what I did was run it on the Work Laptop, and the DB was created in the backup folder. I replaced the current DB with it but no difference. All the songs are still greyed out.
Please note that before running the script I have already replaced the existing DB with the DB from the Home PC. Is it getting a little confusing ... :)

I tried the other untried script as well, but the results are negative.

This is what I have currently:

1) The Home PC DB
2) The songs in the Work Laptop in the same location as in my Home Desktop except for the drive
Home PC => C:\Music\ and D:\MyMusic
Work laptop => D:\Music\ and D:\MyMusic
3) Media Monkey installed on Work Laptop without importing any songs
4) I have all 3 scripts - DEI Sync, Move Device content and the untried one

Please help....

PFB the snapshot while using DEI Sync:
Image

Below is the snapshot for DEISYnc
Scripts I use: Advanced Report
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

One more thing that I wanted to ask is if its possible to manually open the db and change the values and how to do it... thanks
Scripts I use: Advanced Report
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by nohitter151 »

unnicorn wrote:One more thing that I wanted to ask is if its possible to manually open the db and change the values and how to do it... thanks
The manual method is explained here: http://www.plasticsun.com/GiantInternat ... wDrive.htm
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

nohitter151 wrote:
unnicorn wrote:One more thing that I wanted to ask is if its possible to manually open the db and change the values and how to do it... thanks
The manual method is explained here: http://www.plasticsun.com/GiantInternat ... wDrive.htm
Thanks.... that worked.

Thanks everyone.
Scripts I use: Advanced Report
PoooMukkel
Posts: 223
Joined: Thu Jul 19, 2007 8:36 am
Location: Germany

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by PoooMukkel »

nohitter151 wrote:The manual method is explained here: http://www.plasticsun.com/GiantInternat ... wDrive.htm
Puh, that worked for me, too. Today I moved my DB to another drive and now everything is ok.
But this didn't work with the new DB from MM 3.1.0.1224. I had to use the backup which MM did, when I installed the new Beta. SQLiteBrowser 1.3 didn't recognize the entries in the new DB.
But I'm happy that MM is working now for me. *Thumbs up* :)
skyboy

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by skyboy »

I'm looking for the manual DB update method mentioned here, but the plasticsun site appears to be down. Does someone have a cached copy they can share?
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

The URL additionally has some snapshots as well

Code: Select all

How to Tell MediaMonkey Your Files Are on a New Drive

Maybe you ran out of room and bought yourself a new drive for all those music files. How do you tell MediaMonkey to look for the files on the new drive?

The MediaMonkey knowledgebase includes an entry on this subject, but I didn't feel safe monkeying around with the drive serial number - I didn't know what might break! So instead I came up with this alternate method.

The information provided below is not guaranteed in any way - Do this at your own risk!
1. Get Disk Serial Number of New Drive

Go to a DOS prompt.

Change to the new drive (example: "N:").

Type dir

The serial number should be in a form like this: 563A-FE37.
2. Convert Serial Number to Decimal

Use the handy utility below. You may end up with a negative number. That's fine - if it's negative you'll have to enter it that way later in Step 5.
Javascript Drive Serial Number Hex-to-Decimal Converter

3. Backup the MediaMonkey Database

For MediaMonkey 3.0 you can find the database at the following location:
Windows XP 	C:\Documents and Settings\<USERNAME>\Local Settings\Application Data\MediaMonkey\MM.DB
Windows Vista 	C:\Users\<USERNAME>\AppData\Local\MediaMonkey\MM.DB

Make a copy of it in case anything goes wrong!
4. Open MediaMonkey Database

MediaMonkey uses a SQLite database. In addition to the songs it also keeps track of the disks the songs are on. Here's where you will change the disk serial number so MediaMonkey will look for your songs on your new disk.

First download the free SQLite Database Browser from SourceForge. There is no real "install" process for this - what you're downloading is simply a zip file with a single executable program file inside.

Run the SQLite Browser and open the MediaMonkey database.
5. Change the Disk Serial Number in the Database

Click the Browse Data tab and choose the Medias table. Find your old drive, which you should be able to identify by the Label. Doubleclick on the SerialNumber field and change the serial number to the decimal number you got in Step 2.

While you're at it also change the Label and ShowLabel fields.
6. Change the Drive Letter in the Database

Using the horizontal scroll bar, go to the last field on the right, DriveLetter and change it if you need to. Use the table below to determine what number to put in the field.

Your
Drive
Letter	DriveLetter
Value
C:	2
D:	3
E:	4
F:	5
G:	6
H:	7
I:	8
J:	9
K:	10
L:	11
M:	12
N:	13
O:	14
P:	15

7. Done!

Now close SQLite Browser and restart MediaMonkey.

In case anything went wrong you can always revert to the database backup file you made in Step 3.


Scripts I use: Advanced Report
unnicorn
Posts: 18
Joined: Fri Mar 09, 2007 12:21 am

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by unnicorn »

Has the latest MM3 version made any changes to the DB structure? I am unable to open the MM.DB file using SQLite Database browser

Please advice
Scripts I use: Advanced Report
Crackertron

Re: [MM2+3] Change Drive-ID after moving Files to a new Drive

Post by Crackertron »

I followed the script instructions exactly and I'm getting a "Expected end of statement" error #1025, Line 5 Column 17.

What do I need to do?

Thanks!
Post Reply