WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

TCPIP and IP Address

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Get IP Config and Save to File

Keywords: 

Question:

How can I bring up a computers TCP/IP settings? And have it put into a text file. I need something like NT's IPconfig but it has to work the same in 95. Win 95 has its own winipconfig. But I need something that will append or allow text to be manipulated.

Answer:

Run the network control panel applet:
	Run("rundll32.exe", "shell32.dll,Control_RunDLL netcpl.cpl")	     
(search the database for RUNDLL for more examples), and then attack the resulting dialog with the functions you can find in the Control Manager extender (available from the download area of our website, under WIL Add-ons).

Or you can use the Registration REG*** operations to read the information directly out of the registry.

Once you have the info, you can FILEOPEN in append mode and use FileWrite to write the info out.


Article ID:   W13161
Filename:   Get System IP and File Append.txt
File Created: 1999:04:15:16:52:10
Last Updated: 1999:04:15:16:52:10