I am using the getmac command with the /nh, to ignore the header to get the mac address from a computer. I want to grab just the mac address and not the rest of the line that the getmac /nh command returns.
1.What I am trying to do is to use the getmac /nh command to get the mac address.
2. Extract just the first 17 characters which makes up the address and save to a text file.
3. Then I need to learn how to insert that address into a linksys wireless routers wireless mac address table. Is that possible?
getmac /nh > C"\mactest.txt
this sends the macaddress along with other info I dont need to a text file, but i cant get any farther.