Yes, I already started exploring this path but there are few a problems that I'll share in another thread.

On Sat, May 2, 2015 at 4:43 PM, phil@highoctane.be <phil@highoctane.be> wrote:

looks like a bit of C code is required.

http://stackoverflow.com/questions/13646621/how-to-get-mac-address-in-windows-with-c

Maybe a good time to put the C code generator to the test.

Phil

Le��2 mai 2015 15:55, "Usman Bhatti" <usman.bhatti@gmail.com> a ��crit��:
Hello,

Has anyone tried to retrieve MAC address(es) of a windows machine using Pharo? I have tried two options thus far without any success:

1/ OSProcess: I tried����(PipeableOSProcess command: 'ipconfig /all') output. This opens a command prompt on windows machine without anything happening inside it. Although when I try it on Linux/Mac (with ifconfig), I retrieve the output of the command. Another option is to do��OSProcess command: 'ipconfig' but I wasn't able to find a way to retrieve the output of the command.

2/ Nativeboost comes with a set of built-in command to interact with Windows (class NBWin32Shell). One can get environment variables, etc. But I wasn't able to find a way to execute a command on the line and get the results.


Would someone know of a way to retrieve the MAC addresses in Windows through the way listed above or any other form from the Pharo image?

thanks in advance,

Usman