Dear,

Welcome to the board.

We have restyle your script a little bit.
In some situations you are using additional variables which aren't really
necessary. Also we see a strange way of string assignment. Please use
quotations by string. Possible that the current free-format situation will
be removed.

Version 1
code:
$subnet=SubStr(@ipaddress0,9,3)
IF ($subnet = " 10")
$network="local"
ELSE
$network="remote"
ENDIF

IF ($network = "local")
CALL "@lserver\netlogon\local.kix"
ENDIF
IF ($network = "remote")
CALL "@lserver\netlogon\remote.kix"
ENDIF

Version 2 (a shorter version)
code:
IF (SubStr(@ipaddress0,9,3) = " 10")
CALL "@lserver\netlogon\local.kix"
ELSE
CALL "@lserver\netlogon\remote.kix"
ENDIF

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