title: fastboot getvar from batch file
body: <p>I was trying to get certain fastboot variables from a batch file. I was using something like :</p>
  
  <pre><code>for /f "tokens=2 delims=:" %%a in ('fastboot.exe getvar version-bootloader') do @echo version is %%a
  </code></pre>
  
  <p>But I get the output on command line, not in the variable %%a. the command 'fastboot.exe getvar version-bootloader' works perfectly in command-line. I also tried doing:</p>
  
  <pre><code>fastboot.exe getvar version-bootloader &gt;&gt; temp.txt
  </code></pre>
  
  <p>but temp.txt is always empty and i receive the output on the command line, instead of the file. Is there an alternative to this? </p>