Austin,
When you SHELL out to another command interpreter, it has its own copy of the environment. You would need to use a utility to copy its environment to the parent running KiX.

Why not try keeping it all in KiX? If you want insight into IP subnet checking within KiX, look to Sealeapord's IsInSubnet() - Checks if a given IP address is in a specified subnet UDF.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.