title: Uppercase variables
body: <p>im trying to set two vars uppercase, can someone help with whats wrong with this?</p>
  
  <p>The var1 and the var2 will be only one letter, for example a or d.
  this doesnt give any error it just put the two var´s with the same letter.</p>
  
  <p>By the way im using this in a bat file</p>
  
  <p>thanks</p>
  
  <pre><code>@ECHO OFF
  Setlocal EnableDelayedExpansion
  SET /p var1=a
  SET /p var2=d
  set /a "x = 1"
  :while1
  if %x% leq 2 (
  if %x% EQU 1 (SET varvel=!var1!)
  if %x% EQU 2 (SET varvel=!var2!)
      IF [%varvel%]==[] GOTO:invaliddat
  
          SET varvel=%varvel:a=A%
          SET varvel=%varvel:b=B%
          SET varvel=%varvel:c=C%
          SET varvel=%varvel:d=D%
          SET varvel=%varvel:e=E%
          SET varvel=%varvel:f=F%
          SET varvel=%varvel:g=G%
          SET varvel=%varvel:h=H%
          SET varvel=%varvel:i=I%
          SET varvel=%varvel:j=J%
          SET varvel=%varvel:k=K%
          SET varvel=%varvel:l=L%
          SET varvel=%varvel:m=M%
          SET varvel=%varvel:n=N%
          SET varvel=%varvel:o=O%
          SET varvel=%varvel:p=P%
          SET varvel=%varvel:q=Q%
          SET varvel=%varvel:r=R%
          SET varvel=%varvel:s=S%
          SET varvel=%varvel:t=T%
          SET varvel=%varvel:u=U%
          SET varvel=%varvel:v=V%
          SET varvel=%varvel:w=W%
          SET varvel=%varvel:x=X%
          SET varvel=%varvel:y=Y%
          SET varvel=%varvel:z=Z%
  
  if %x% EQU 1 (set var1=!varvel!)
  if %x% EQU 2 (set var2=!varvel!)
  set /a "x = x + 1"
  goto :while1
  )
  echo %var1% 
  echo %var2%
  Pause
  </code></pre>