Get MAC Address with java

import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; public class GetMac { public static void main(String[] args) throws IOException { String address = new GetMac().getMacAddress(); System.out.println(address); } public String getMacAddress() throws IOException { String macAddress = null; String command = “ipconfig /all”; Process pid = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader( new InputStreamReader(pid.getInputStream())); while (true) [...]

Get MAC Address with VB6

List source code to get MAC Address of a computer Private Const NCBASTAT As Long = &H33 Private Const NCBNAMSZ As Long = 16 Private Const HEAP_ZERO_MEMORY As Long = &H8 Private Const HEAP_GENERATE_EXCEPTIONS As Long = &H4 Private Const NCBRESET As Long = &H32 Private Type NET_CONTROL_BLOCK ‘NCB ncb_command As Byte ncb_retcode As Byte [...]

Follow

Get every new post delivered to your Inbox.