title: How to get integer of free disk space in Batch file?
body: <p>I'm trying to get integer of free disk space in Batch file. This is a my (very) simple code.</p>
  
  <pre><code>@echo off
  wmic logicaldisk get freespace &gt;&gt; freespace.log
  exit
  </code></pre>
  
  <p>But output in freespace.log file. </p>
  
  <pre><code>FreeSpace    
  9772687360   
  57401442304  
  7346626560   
  0            
  0            
  </code></pre>
  
  <p>I need to pick integer only and summation. After summation output like this.</p>
  
  <pre><code>74520756224
  </code></pre>
  
  <p>I search on Google as my best but I can't find solutions. Please help me:)</p>