Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


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