i have software that puts ip address in registry key such as:
Key has ip address: 192.168.1.158
I want to compare the 'network' portion of the ip address in this key to a 'static network portion' such as 192.168.1 (/24) for this part i can set variable such as staticnetwork=192.168.1 and if registry contains this string as a positive match then i need to make an action such as install.exe
If the ip address in the key matches the correct network portion, then i need to perform action. and if not then i take separate action.
can you show me how this is accomplished??