title: How can I extract the IP (Wifi adapter only) of a PC and set it as a variable through a batch file?
body: <p>I currently have this simple line in order to write the IP in the console</p>
  
  <pre><code>for /f "tokens=14 skip=34 delims= " %%a in ('ipconfig') do (echo %%a)
  </code></pre>
  
  <p>Yet, when I try to input this info into a file, it'll just display the last character shown in the command, which is ":", but I need to extract solely the first line into a text file <code>%temp%\Test.txt</code> so I later save it into a variable through</p>
  
  <pre><code>set /p IP=&lt; %temp%\Test.txt
  </code></pre>
  
  <p>Tried with Type, but didn't work, I'm currently codeblocked, any ideas?</p>