SDBIniFile
SDBIniFile
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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
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
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 2153
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
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
Another option is
Jiri
Code: Select all
SDB.MyMusicPath
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.