Yes, it does that very well. I'll probably leave it as-is but I believe the best way to do it is to check the registry like you originally alluded too. I was just wondering if there is a way to do it with one writevalue routine.
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain