title: Thousands separator of an integer value
body: <p>Let's say I have this in my batch file:</p>
  
  <pre><code>set var1=12345
  </code></pre>
  
  <p>And I want to add commas in the first variable <strong>(var1)</strong> and save it to another variable <strong>(var2)</strong>.</p>
  
  <p>That means that the second variable <strong>(var2)</strong> should have this value: <strong>12,345</strong>.</p>
  
  <p>So If the first variable <strong>(var1)</strong> had this value: 123456789, the second one's <strong>(var2)</strong> value has to be 123,456,789.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I don't want PowerShell commands because the don't work for me.
  Please write <strong>without</strong> PowerShell.</p>