Problem saving to Scripts folder in MM4 due to UAC
Posted: Sun Nov 27, 2011 4:58 am
My script MegaDJ doesn't just read from the Scripts folder, but also saves to it. I use MM's given path "SDB.ScriptsPath". Unfortunately, due to Microsoft's over-cautious and messy policy of not allowing files to be easily written to their own program folder (if inside Program Files), this now throws an error under MM4, at least in Vista/Windows 7:
So now, I'm wondering which 'magic' location I should save it under, preferably using a reference style command like "SDB.UserSettingsPath" (though obviously that won't work). It should obviously work from WinXP through to Win 7.Error #70 - Microsoft VBScript runtime error
Permission denied
File: "C:\Program Files\MediaMonkey4Demo\Scripts\Auto\MegaDJ.vbs"