Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
how do u get a machine's mac addres
Name: clyde Date: July 18, 2003 at 03:52:48 Pacific OS: Windows 2000 CPU/Ram: 1000Mhz/128MB
Comment:
I'm looking for a way to get a computer's mac address programmatically. Is there a VB function that returns it? Please help.
Name: Rolos Date: July 18, 2003 at 04:31:01 Pacific
Reply:
You can get a machine's mac address by doing a system call to netstat along with the computer's IP. Doing it in MS-DOS, the correct syntax would be:
netstat -a IP#
I know how to do this in C++, not in VB. If you can do system calls in VB then it shouldn't be a problem for you. What you are planning on doing with this information anyway?
- Rolos
0
Response Number 2
Name: Rolos Date: July 18, 2003 at 04:37:20 Pacific
Reply:
P.S. The guys up in the networking forum are very knowledgeable of this kind of stuff, even doing it programatically. Try posting your topic there as well. It couldn't hurt to try, you'd probably get better options and results.
Regards,
Rolos
0
Response Number 3
Name: anonproxy Date: July 18, 2003 at 22:45:59 Pacific
Reply:
Its important to realize that a MAC address is a completely untrustworthy value. It is commonly changed. There is no way to validate its authenticity through conventional mechanisms (aside from blocking the obvious straight zeros or ones, for example.)
On a side note, you can shell out to DOS with a VB Shell command... pipe the ipconfig /all results or netstat results into a delimited text file... then parse that file for the MAC value.
Summary: I want to have my program to save a bunch of words to a text file but I want it to save them 1 word per line. How do I get the program to place each new word on a new line each time it goes through th...