Ok..

Seems to work ok, but...

Here is the changed code -
code:
 CLS
BREAK ON
;ENUMINI
$fl=@scriptdir+'\test.ini'
ENUMINI($fl)
FUNCTION ENUMINI($fl)
$sections=split(readprofilestring($fl,'',''),chr(10))
FOR EACH $sectionentry IN $sections
IF $sectionentry <>''
?'Section '+$sectionentry
$keys=split(readprofilestring($fl,$sectionentry,''),chr(10))
FOR EACH $sectionkey IN $keys
IF $sectionkey <>''
? 'Key "'+$sectionkey+'" = "'+readprofilestring($fl,$sectionentry,$sectionkey)+'"'
$resource=readprofilestring($fl,$sectionentry,$sectionkey)
IF INGROUP($sectionentry)
USE $sectionkey+':' $resource
ENDIF
ENDIF
NEXT
ENDIF
NEXT
ENDFUNCTION

The problem is that if I want to map the drive using a $ share (personal drive), it is not picked up. I have used single $, double $$, and chr(36) and these do not work..

Here is the modified INI file -
code:
[DOMAIN1\PDX]
H=\\SERVER7\@userid+'$$'
R=\\SERVER5\APPS
S=\\SERVER6\SHARED
[DOMAIN2\PDX]
H=\\SERVER7\@userid+'$$'
R=\\SERVER5\APPS
S=\\SERVER6\SHARED
[DOMAIN1\Info_Technology]
G=\\SERVER7\IS

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's