quote:
Originally posted by Lamaboy
Thanks, it works, but not quite.
code:
Error: Permission denied (code: -2146828218)
The folder is read only, so how else can I keep one specific window from recording chat logs?
I have no folder to test it under your circumstances right now if this works but have you tried to set the force parameter in the DeleteFolder Method described on the link I mentioned?
If yes, maybe there is a WinAPI function to unlock the folder first?
Well, I know there is one, but I'm not quite sure how you do it within JavaScript. And even if you can unlock it, you may run into other problems later.
However, CookieRevised is right, deleting a folder that is used several times and locked for that shouldn't be deleted as it may lead to serious problems up to crashing the program (not WLM specific but who knows?^^).
So, as CookieRevised said as well: more information
may help us to help you.