There could be some matters arround Execute() and NoVarsInStrings.

Could you try the following function, whitch turns on VarsInStrings before Execute() and then restores it to its previous state.

Code:

Function DRVMAP()
Dim $rc,$data,$section,$grp,$i,$drive,$resource,$NoVarsInStrings
$data = EnumINI(@LDrive + '\NewScript\DRVMAP.ini')
If Not @Error
For Each $section In $data
$grp = Split($section[0],',')
If InGroup($grp)
For $i = 1 To UBound($section)
$drive = $section[$i][0] + ':'
$resource = $section[$i][1]
$NoVarsInStrings = SetOption('NoVarsInStrings','Off')
$rc = Execute('$$resource=$resource')
$rc = SetOption('NoVarsInStrings',$NoVarsInStrings) ; Set NoVarsInStrings to previous state
Use $drive $resource
Next
EndIf
Next
EndIf
EndFunction



-Erik