here u are :



break on

$DefaultGateway = split(readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip""DefaultGateway"),'|')
$SubnetMask = split(readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip""SubnetMask"),'|')
if @error = 0
    if vartype($DefaultGateway) > 8192 and vartype($SubnetMask) > 8192
        if $DefaultGateway[0] = "169.112.1.1" and $SubnetMask[0] = "255.255.255.0"
            ? "Default Gateway: " + $DefaultGateway[0]
            ? "SubnetMask:      " + $SubnetMask[0]
        endif
    endif
endif

get $



ONLY if you are sure there is this 3Com adapter present and DHCP isn't activated [Wink]

[ 03. March 2003, 15:15: Message edited by: jpols ]
_________________________