bpayne111 Posted April 27, 2004 Posted April 27, 2004 there is this stupid hex value in ipconfig that i need to get in code somehow. (no it's not an ip and no i'm not trying to take over the world) what i'd like to do is run ipconfig in code somehow and stream it's output into a variable so i can find this stupid hex thing and store it. i'll be glad to give my legitimate reason for doing this if you have the time to listen. (pm me or something so i don't spam the board) thanks brandon Quote i'm not lazy i'm just resting before i get tired.
Administrators PlausiblyDamp Posted April 27, 2004 Administrators Posted April 27, 2004 (edited) You could use code similar to the suggestion in this thread to redirect the output from ipconfig. you would then just need to search through the returned data for lines containing the term "physical address". If you can't get it working post again and I'll see what I can do. Out of interest have you considered using WMI to retrieve the MAC address rather than parsing the output of ipconfig /all, think I saw a recent post from dynamic_sysop about that.... Edited February 27, 2007 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bpayne111 Posted April 27, 2004 Author Posted April 27, 2004 it's not the mac address it's some big long crazy hex number (like 25 digits) that is sort of the 'name' of the adapter ie the 'Ethernet Adapter LAN' line (or similiar) thanks for the link i'll check it out Quote i'm not lazy i'm just resting before i get tired.
bpayne111 Posted April 27, 2004 Author Posted April 27, 2004 CHEERS to you and that wonderful code... that's just what i needed Quote i'm not lazy i'm just resting before i get tired.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.