Diese Seite mit anderen teilen ...

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

Subnet Mask

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

Hi,

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.

regards
Hemant

Message forwarded from pcsoft.us.windev

Antworten:

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:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{E141AC9B-18F3-4376-BC88-548C6FBF7CBE}\Parameters\Tcpip\SubnetMask

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

regards

issah

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.

Regards.

von RAUL - am 21.11.2011 15:06
Hi.

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.