batch file remove excess strings

May 4, 2011 at 12:37:35
Specs: Windows Vista
I have a a batch file that extracts the MAC address of a machine, in this format:

Physical Address Transport Name
=================== ==========================================================
00-C0-A8-FD-09-38 Media disconnected
00-A0-D1-C7-51-71 Media disconnected

All I need now is to clean it up for the result to display:


Please help.

See More: batch file remove excess strings

Report •

May 4, 2011 at 13:26:30
If it's real (MS-/DR-/Free-)DOS then you could consider using PIPESET or FAM. You find these programs as part of the DOSUTILS package which in-turn you will find here:

Report •

May 6, 2011 at 13:57:03
:: ==========================================
:: 888boy.bat Sat 07-05-2011 3:51:39.06
@echo off & setLocal enableDELAYedeXpansioN

for /f "skip=2 tokens=1 delims= " %%a in (MAClist) do (
goto :eof

Life is too important to be taken seriously.


Report •
Related Solutions

Ask Question