Search found 1 match

by HumanJHawkins
13 Jun 2013 15:45
Forum: DOS Batch Forum
Topic: Obtain IP Address (and parse Octets) and Gateway from DOS
Replies: 1
Views: 5833

Re: Obtain IP Address (and parse Octets) and Gateway from DO

It seems that the IP Address part of the "route print" output doesn't follow a format that is easily parsed when there are multiple connections. I.e. wired and wireless on a laptop. So this part of the code: route print 0.0.0.0 |findstr 0.0.0.0 > tmp.txt for /f "tokens=3,4" %%a i...