Bo Berglund via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am
Fr., 10. Sep. 2021, 09:41:

> Is there a way to enumerate the active adapters on a Windows computer with
> their
> IPv4 and MAC addresses?
>

There is an API for that, but I don't remember that right now.


> I am trying to convert a Linux reporting script to Windows, but I have a
> hard
> time finding a suitable Windows command. The script uses common Linux
> commands
> and tools to get the eth0 and wlan0 data (IPv4 and MAC addresses) and then
> to
> POST it to my website mailer (php script) via curl. See below.
>

You can use the ipconfig command and parse its output (especially ipconfig
/all).

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to