I'm currently trying Doc's service pack script, however I work with multiple subnets in our schools. What I'm trying to do is get the script to look at the ip address and then use the appropriate sp server, since I have 9 buildings linked by T1. Any suggestions would be greatly appreciated. Right now the messagebox displays nothing which would tell me if I used this in my script it would fail.


Call "isiniprange.udf"

ServicePack

Function ServicePack()
Dim $ip,$ipaddress,$iparray,$spServer

$ipaddress=@IPADDRESS0

Call "isiniprange.udf"

ServicePack

Function ServicePack()
Dim $iparray[1],$ipaddress,$iparray,$spServer

$ipaddress=@IPADDRESS0

Select
   $iparray[0]='10.125.16.0/20'
   Case isiniprange($ipaddress,$iparray)
      $spServer='jcboe'
   $iparray[1]='10.125.32.0/20'
   Case isiniprange($ipaddress,$iparray)
      $spServer='alt'
EndSelect
      
MessageBox($spServer, "Service Pack Update Required", 64, 60)



[ 15. August 2003, 00:13: Message edited by: cholbrook ]