title: Convert a string to number
body: <p>I need help regarding the following;</p>
  
  <p>I have the following script :</p>
  
  <pre><code>SETLOCAL DisableDelayedExpansion
  
  for /f "delims=" %%a in (stores1.txt) do (
  
  set /p stores=%%a )
  </code></pre>
  
  <p><strong>stores.txt</strong> has the content like:</p>
  
  <pre><code>0010
  0011
  0012
  etc.
  </code></pre>
  
  <p>The solution that I found is <code>set /p stores=%%a</code></p>
  
  <p>This output : <code>0010,0011,0012</code> must be passed as parameter to an <code>sql.script</code>:</p>
  
  <pre><code>sqlplus user/password@%database% @sqlscript.sql !stores! !data!
  </code></pre>
  
  <p><strong>stores</strong> must be a numeric value, because in the .sql script a numeric value is interrogated </p>
  
  <p>So the concluzion is that i need a numeric value not a string.How can I do this "conversion" ?</p>
  
  <pre><code>@echo off
  setlocal enabledelayedexpansion
  set stores=
  PAUSE
  for /f "delims=" %%a in (stores1.txt) do (
  set /a stores=%%a
  echo !stores!
  )
  pause
  </code></pre>