#19940 - 2002-04-16 05:44 PM
Re: Location of computer
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
What type of network client are you using? If it is msclient from microsoft, which can be found at ftp://ftp.microsoft.com/bussys/Clients/MSCLIENT then you can use the ipconfig.exe utility included to spit out a file. then open the file and read the first line of it, parsing for ip address.
It would work something like this:
shell "ipconfig a:\net > ip.txt" (You may need to modify to you own specs. The A:\NET is assumed lanroot.)
The first line in the file after that is blank. The second line is:
IP Address : xxx.xxx.xxx.xxx .. You should be able to parse the file for the ip address. It also may be possible if you're using DHCP to parse the hidden dhcp.prm file for the same information. The ping method should also work, however I was unable to get ping to run properly within memory constraints on my DOS boot diskette.
Brian
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 687 anonymous users online.
|
|
|