I noticed that when I test the ENUMGROUP loop I do get an execution of the loop when the group seems to be empty.

Add a line to output the group name just after "If $sShare"

? "Debug group name + share: " + $sGroup + " ~ " + $sShare

What are the results when you see the double execution?
_________________________
Home page: http://www.kixhelp.com/hb/