SDBIniFile

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

SDBIniFile

Post by trixmoto » Wed Jan 25, 2006 9:06 am

It would be really useful if SDBIniFile had a location "Get" property which allowed you to retrieve the filename of the .ini file. What do you think?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

psyXonova
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus
Contact:

Post by psyXonova » Wed Jan 25, 2006 9:33 am

MediaMonkey.ini can only be named MediaMonkey.ini, else MM wont work...
The location of the MediaMonkey.ini is standard:
<UserDocuments>\My Music\MediaMonkey

If MM is used in a shared envirronment then the MediaMonky.ini is located under the
<ProgramFiles>\MediaMonkey folder.

There is a MediaMonkey.ini file under that folder all the times but when not used under shared environment it only contains entries for direct sound ([out_ds] section).

Using that info is quite easy to get the location of the ini file. If the ini inside program files is empty (use a stream object to check this) then the ini is located under the first folder...

Hope this helps

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Wed Jan 25, 2006 10:15 am

Ok, cheers. How do I get to the <userdocuments> though?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

onkel_enno
Posts: 2146
Joined: Fri Jan 14, 2005 1:45 am
Location: Germany
Contact:

Post by onkel_enno » Thu Jan 26, 2006 2:21 am

trixmoto wrote:Ok, cheers. How do I get to the <userdocuments> though?

Code: Select all

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
Source =WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Music") & "\MediaMonkey"
Set WshShell = Nothing
SansaMonkey - for SanDisk Sansa and Rockbox Users

Please no PMs for Questions which should be asked in the Forum. Thx

mockturtle
Posts: 8
Joined: Wed Jun 18, 2008 4:49 pm

Post by mockturtle » Thu Jan 26, 2006 3:18 am

Another option is

Code: Select all

SDB.MyMusicPath
Jiri

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

Post by trixmoto » Thu Jan 26, 2006 4:16 am

Yes, thanks jiri. When I was looking at a previous script I noticed that I'd used SDB.MyMusicPath so I'm using that now! :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

Post Reply