Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: TCP/IP
For a configured tcpip To would see if some non 0.0.0.0 ip address is installed for the machine. It can be in one of maybe 6 places.
Try...
topkey="System\CurrentControlSet\Services\Class\NetTrans\" ifRegExistValue(@REGMACHINE,"%topkey%0000[ipaddress]") ipaddr0000=RegQueryValue(@REGMACHINE,"%topkey%0000[ipaddress]") endifThe do it for 0001 0002 ... 0006 and if any if the ipaddrxxxx is non-null and non 0.0.0.0 there is a rela good change a configured tcpip connection exits.
For our purposes, since we use the Win95 or NT native TCP/IP stack, and are not concerned about other possible TCP/IP stacks, the simple command:
HasTCPIP = RegExistKey (@REGMACHINE,"System\CurrentControlSet\Services\VxD\MSTCP") Terminate(!HasTCPIP, "Error", "NO TCPIP found. Please install or contact your network co-ordinator for assistance.")works. It has information not about the workstation, but about the DNS's it connects to and a little bit more.
If you have TCP/IP on a workstation (you know from the above if you do), then you can get other information in many way, including;
Run("WINIPCFG","/ALL /BATCH filename.ext")which will write the whole enchalada to a file called filename.ext.
Article ID: W13165
Filename: How to Check if TCP IP is Installed.txt
File Created: 1999:04:15:16:52:12
Last Updated: 1999:04:15:16:52:12