title: Batch / REG QUERY get the path of found value
body: <p>I am trying to make a batch file, that finds a specific interface (their name vary from computer to computer = query). To find the interface I use a specific IP that is under that interface as a value.
  The code here can find the interface in question based on the IP i insert into "IP-ADDRESS".</p>
  
  <p>But my ultimate goal is to based on this search add two registry values into this interface, and therefore I need the path.</p>
  
  <p>How do I get the path into a variable based on the search below?</p>
  
  <pre><code>for /f "tokens=3*" %%a in ('reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ /s /f "IP-ADDRESS"') do set Myvar=%%b
  
  ECHO %Myvar%
  PAUSE
  </code></pre>
  
  <p>Thank you in advance!</p>