Or you use the function ISInSubnet() at http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=12;t=000053.
It checkes whether a specific IP address is part of a network based on the network ID and subnetmask.
You would end up with the following code:
code:
IF IsInSubnet(@IPADDRESS0,'10.65.0.0','255.255.0.0')
SHELL '%COMSPEC% /C /E:1024 '+@LDRIVE+'\B_antivirus.bat'
ENDIF

_________________________
There are two types of vessels, submarines and targets.