I have a drive mapping script that needs to know which office the computer is in or if the computer is out of the office for laptop users. Each office has a static Public IP address which I obtain by launching a separate script at startup that runs _GetIP().
I save the public IP address to the registry so I only have to run _GetIP() once per startup because I have noticed it sometimes fails and I have to run it until I get an IP address. If I run this within the drive mapping script, it may