Hi,

Complex network with a lot of branch-offices on different IP-subnets. I need to set a variable to a specific server on the subnet where the client is located.

The script is pausing when I do
 Code:
Dim $SubnetArray[3]
$SubnetArray = Split(getipoptions("DefaultGW"), ".", -1)
for $i = 0 to 3
  $SubnetArray[$i] = Val($SubnetArray[$i])
next
$DBA = "\\" + $SubnetArray[0] + "." + $SubnetArray[1] + "." + $SubnetArray[2] + "." + "27"
$APP = "" + $SubnetArray[0] + "." + $SubnetArray[1] + "." + $SubnetArray[2] + "." + "2"


I am calling the getipoptions.udf earlier in the script.

Am I doing something wrong with GetIpOptions or is it just slow?

TIA!