title: findstr for executing a command if str does not contain 169
body: <p>I am new to batch files and have seen several posts about findstr but could not get it to find a 169 inside a string which contains an IP address</p>
  
  <pre><code>    set Foo=169.254.100.1
      SET Foo|findstr /i 169
      if ERRORLEVEL 1 (echo it doesnt contain 169, do launch) else (echo it contains 169, don't do launch)
  </code></pre>
  
  <p>)</p>
  
  <p>Foo contains 169 as you can see, but when I do findstr, it returns 1 and shows "it doesnt contain 169, do launch"</p>
  
  <p>Could anybody see what is wrong here?</p>