Dear,

Welcome to the board.

It is possible by using the Execute command.
Our version is
code:
 $grpname = ReadProfileString ("@lserver\netlogon\kix\ini\groups.ini", "3", "group")
$drvltr = ReadProfileString ("@lserver\netlogon\kix\ini\groups.ini", "3", "drive")
$share = ReadProfileString ("@lserver\netlogon\kix\ini\groups.ini", "3", "share")
$nul = Execute('$dummy="$share"')
$share = $dummy

At (13,5) "Executing:"
IF (InGroup("$GrpName") <> 0)
At (13,20) "Mapping $DrvLtr to $Share"
$nul=MessageBox ($share,"Show Share")
USE $drvltr /delete /persistent
USE $drvltr $share
ENDIF

FYI: IF/ENDIF win combination with Execute will not work. IF/ENDIF creates it
in his own environment block.
So don't use structures like this
code:
 $share = ReadProfileString ("@lserver\netlogon\kix\ini\groups.ini", "3", "share")
IF Execute('$dummy="$share"')
ENDIF
$share = $dummy

the result isn't the same.

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA