Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 6 Jahren, 7 Monaten
Letzter Beitrag:
vor 6 Jahren, 7 Monaten
Beteiligte Autoren:
jose anotnio, RAUL, issah, Hemant.pcs.crosspost

Subnet Mask

Startbeitrag von Hemant.pcs.crosspost am 18.11.2011 16:03


I am trying to find and IP range from my current interface. I have writen and .net dll to do this, but wanted to know if there is a way using WD16 only to find the range of ip addresses from the device IP and the subnet mask. I and struggling to find the subnet mask using only WD commands.

Can anyone tell me if there is a WD way to find the Subnet mask?

Thanking you in advance.


Message forwarded from pcsoft.us.windev


I dont think there is a function, but you could try and read the registry. Was using Win xp at the time and got something like:


I am not great with registry stuff and I suspect this might change for different OS versions. Further investigations over to you.

My 2 cents worth



von issah - am 18.11.2011 22:19
Another approach (I didn't try it yet...)

You could execute "ipconfig >> ip.txt" command with ExeRun() and then find the subnet mask text in that file. See the full sintax for ipconfig.


von RAUL - am 21.11.2011 15:06

There is no wlanguage function to find the mask address.
But In Lst 84 there is an example of how to manage that using WMI and .NET.

They use Win32_NetworkAdapterConfiguration WMI Class.

José Antonio.

von jose anotnio - am 23.11.2011 00:55
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.