Page 1 of 1
Posted: 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?
Posted: 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:
If MM is used in a shared envirronment then the MediaMonky.ini is located under the
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
Posted: Wed Jan 25, 2006 10:15 am
Ok, cheers. How do I get to the <userdocuments> though?
Posted: Thu Jan 26, 2006 2:21 am
trixmoto wrote:Ok, cheers. How do I get to the <userdocuments> though?
Code: Select all
Set WshShell = CreateObject("WScript.Shell")
Source =WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Music") & "\MediaMonkey"
Set WshShell = Nothing
Posted: Thu Jan 26, 2006 3:18 am
Posted: 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!