Field extraction with Batch?

November 2, 2010 at 08:01:31
Specs: Windows XP
Is field extraction possible in Batch?

Using the command:

netsh interface show interface -> The below table gets dropped, is there a way to extract the field under interface name for the and bring it into a script as a variable? (Perl isn't an option in this case, and I dont know VB

Admin State State Type Interface Name
Enabled Dedicated Local Area Connection
Enabled Internal Internal
Enabled Loopback Loopback

See More: Field extraction with Batch?

Report •

November 2, 2010 at 09:03:23
Figured it out.

pipe to find.

Report •

November 3, 2010 at 04:52:27
@echo off & setLocal EnableDELAYedeXpansion

set N=
for /f "skip=2 tokens=3 delims= " %%a in (mytable) do (
set /a N+=1 & set V!N!=%%a
set V

Life is too important to be taken seriously.


Report •

Related Solutions

Ask Question