Les, you forget I’m like the blind leading the blind.

So, how would I go about deleting registry keys in a loop with an enumerated index, so as not to skew the index? Would deleting 1 from $vIndex each time I delete a key work?

And, why shouldn’t I use GOTO (not that I’m married to it and can’t change) just wondering? Should I use DO – UNTIL or WHILE – LOOP? Just trying to learn the correct way of doing things.