Sorry, I was assuming a setup something like our schools. If one has a distributed network with multiple unique DHCP servers for each unique location then I agree one could use the IP subnet to find the location. In our setup we just have one dhcp server for the whole network so the IP address gives you nothing about the location. I wasn’t thinking in terms of countries, rather, I was thinking in terms of rooms & printers, etc.

I still not sure that I understand the problem. If you are using a boot disk you must know the location because the person using the disk must be physically there. Why can't a simple menu selection set this variable for you? This is what we do. The computer name is constructed from this information plus other info to make it unique. Afterwards, putinenv is used to pull the NIC address for the machine your boot disk is working on & then an association list is created linking the new name, location & NIC address. This is then exported to the server. This creates a permanent association between this machine & its location. Something like this might work for you.

Note that the kxrpc service does not function with DOS boots. Thus LanMan variables (server related info) are not available to kix under DOS. putinenv is an effective replacement for kxrpc. Additionally, all the new functions added to versions 3 & 4 of kix are not available under the DOS version. Thus, I believe that @ipaddress is not available. Ping can get this info though if TCP/IP is used in your boot disk. If you want to save the ping result you must pipe it to a text file & then pull it out with something like string.com. Unfortunately, the text handling capabilities of the 16 bit version of kix are not very good so we find it must be supplemented with DOS utilities like string.com, putenv & a batch INI file editor. Under Windows, with kix versions 4 or higher one can often function without extra utilities but not if you are using the 16 bit DOS version.

Check out this link.

http://www.jsiinc.com/subd/tip1700/rh1786.htm

This is a very good general site for some of this type of info. You might try searching it.

[ 16 April 2002, 17:46: Message edited by: JackLothian ]
_________________________
Jack