You will need to explain a little more clearly what you are attempting to do. Hopefully, you don't want to add a folder to favorites every time a user selects one in an Explorer window. That could quickly render the Favorites folder useless. Not to mention making for an unhappy user. So what is going to trigger adding a 'selected' folder to favorites?