Search found 2 matches

by djokoss22
10 Dec 2016 18:47
Forum: DOS Batch Forum
Topic: Check if a variable begins with .....
Replies: 3
Views: 2877

Re: Check if a variable begins with .....

Compo wrote:If I remember correctly there is a space after the :
So your solution is likely to be "change your ~0,8 to ~1,8"


In fact, there is a space before the ip address ! The solution is ~1,8
Thx for the help. :wink:
by djokoss22
10 Dec 2016 11:31
Forum: DOS Batch Forum
Topic: Check if a variable begins with .....
Replies: 3
Views: 2877

Check if a variable begins with .....

Hi guys, i am trying to script a code that find the ip address of a network card and check if that ip is an APIPA (169.254.x.x) How can i check if a variable start with "169.254." Here is what i did but it does not work: for /f "tokens=2 delims=:" %%a in ('ipconfig ^|find "I...