Logically your FOR loop is the problem

 Code:
	For Each $sShare in Split(ReadProfileString($sShareIni,"LOCATION "+$sGroup,""),Chr(10)) 


It seems to be looping two times when you expect on one iteration.

Can you post more of your INI file for testing?


Edited by Howard Bullock (2007-12-07 03:23 PM)
_________________________
Home page: http://www.kixhelp.com/hb/