title: string manipulation command line windows 7
body: <p>i have this script which i think should work, what i actually want is to remove the quotes at either end of the version number</p>
  
  <pre><code>echo  parsed in %1 %2
  IF "%1%" == "BUILD_VERSION" (
      echo %2:~1,12%)
  </code></pre>
  
  <p>the results are:    </p>
  
  <pre><code>S:\Office\Source\Framework\Code&gt;echo  parsed in BUILD_VERSION "13.000.0000"
   parsed in BUILD_VERSION "13.000.0000"
  
  S:\Office\Source\Framework\Code&gt;IF "BUILD_VERSION" == "BUILD_VERSION" (echo "13.
  000.0000":~1,12 )
  "13.000.0000":~1,12
  </code></pre>
  
  <p>all the string functions I have tried do the same.
  i got my example to crib from here (which I have only just realised isn't stackoverflow)
  <a href="https://superuser.com/questions/228794/how-to-extract-part-of-a-string-in-windows-batch-file">https://superuser.com/questions/228794/how-to-extract-part-of-a-string-in-windows-batch-file</a></p>