locked
Retrive a MAC address??? RRS feed

  • Question



  • How can we retrieve a MAC address of a ethernet card through the batch file & can store it in a document type document automatically?
    Anybody knows this kind of DOS command or program in any other language? that can help in this job?
    Storing MAC address in document type format is must.
    Thursday, September 13, 2007 3:24 PM

Answers

  • Open Command Prompt and type getMAC. This will give you the MAC address (shown as Physical Address). You can also use ipconfig /all. You can pipe this output to a textfile as shown below -

     

    c:\>getMAC > mac.txt

     

    This will create a file called mac.txt.

    Thursday, September 13, 2007 4:09 PM

All replies

  • Open Command Prompt and type getMAC. This will give you the MAC address (shown as Physical Address). You can also use ipconfig /all. You can pipe this output to a textfile as shown below -

     

    c:\>getMAC > mac.txt

     

    This will create a file called mac.txt.

    Thursday, September 13, 2007 4:09 PM

  • Thank you for your help
    Thursday, September 13, 2007 6:13 PM
  • u can do this also by typing "route print" command in the command prompt.... there along with MAC address u'll get a full view for routing table for ur NIC card....

     

    Thursday, September 13, 2007 6:22 PM