title: Write local ip address to text file using batch file
body: <p>I want to create a batch file that writes the local IP address on a txt file. When i run a batch file with this code (file path is wrong but that's not the problem):</p>
  
  <pre><code>ipconfig | find "IP Address" &gt; \File.txt
  </code></pre>
  
  <p>I get the whole windows IP configuration (I changed some numbers and stuff with xxx to not show all info)</p>
  
  <pre><code>    IP Address. . . . . . . . . . . . : 100.100.100.223
  
      IP Address. . . . . . . . . . . . : 192.xxx.xxx.xxx
  </code></pre>
  
  <p>I want to write to a file only <code>100.100.100.223</code>.</p>
  
  <p>I'm new to batch files and i really searched a lot and I'm really confused. (maybe i'm searching with wrong keywords).</p>
  
  <p>Forgot to tell I'm using Windows XP (Because some of the answers doesn't work on XP).</p>