title: Store a second-line output in a variable
body: <p>I am making a little script to get users public/external IP address to cmd!<br>So it goes:<br></p>
  
  <pre><code>C:\...&gt;nslookup myip.opendns.com resolver1.opendns.com | find /I "Address" &gt; %temp%\_W___1.log
  
  C:\...&gt;set /p GPIPLOG=&lt;%temp%\_W___1.log
  
  C:\...&gt;echo %gpiplog%
  Address:  208.67.222.222
  
  C:\...&gt;type %temp%\_W___1.log
  Address:  208.67.222.222
  Address:  X.X.X.X
  
  C:\...&gt;echo %gpiplog:~2,50%
  dress:  208.67.222.222
  </code></pre>
  
  <p>I'm thinking that <code>echo %gpiplog:~2,50%</code> will jump to second line and show everything until it reaches 50 characters, but I'm wrong!<br><br>What I want:</p>
  
  <pre><code>C:\...&gt;echo %gpiplog:~2,10,50%
  X.X.X.X
  </code></pre>