| || |
Extracting DNS and WINS server values from IPConfig
I am trying to Verify MY DNS and WINS settings while connected to a network with a modem:
LIST OF STRING IPCFGOUT
SYS_Execute ("IPCONFIG /ALL", IPCFGOUT)
The ListPrint displays the exact content of the IPConfig /all command.
The List IPCFGOUT gets populated with 53 items(Delimited by Carriage Returns) but I cannot access any of them by using the MatchStr function or the StrPos functions (Both return 0).
Any Clues? Anyone done this before?
Re: Extracting DNS and WINS server values from IPConfig
You'll have to check each line in the return value. For example, here's the way to get the IP address out:
I hope this helps.
A concerned Borland customer, a fly in the ointment, a wrench in the works.