Shawn,
To poke the comments just above the keys you'd have to WriteLine() both of them or else WriteProfileString() will put the keys at the end of the section.

Guess Jooel must have finally passed out. He was up all last night knocking back brewskies.

BTW, I finally got what Jooel was trying to say. I'm a bit slow on the uptake...

Back to the challenge at hand...
Not an easy task. but do-able. ReadProfileString() the key to a var; remove the key; create a unique comment key; recreate the removed key. They are now sequencial. Parse the file for the comment and rewrite the file(as per my first post) replacing the comment key with the comment line.

If anyone has a better idea...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.