title: Extract number from string in batch file
body: <p>From a batch file I want to extract the number <code>653456</code> from the following string:</p>
  
  <pre><code>C:\Users\testing\AppData\Local\Test\abc123\643456\VSALBT81_COM
  </code></pre>
  
  <p>The number will change, however it will always be just digits.</p>
  
  <p>My current theory is to search for something that fits <code>\alldigits\</code>, then replace the two <code>\</code>s with white space, but I can’t quite get it.</p>