title: insert a variable into a variable in batch
body: <p>I'm trying to insert a variable into a variable, I've tried this, but it didn't work:</p>
  
  <pre><code>set gabriel-ctCODE=fmfg1
  
  
  set /p user=Username: 
  set /p password=Password: 
  set /p ctCODE=ctCODE: 
  
  
  
  if %password%== %%user%-pass% set /a loginerrorlevel=%loginerrorlevel%+1
  pause
  if %ctCODE%== "%%user%-ctCODE%" set /a loginerrorlevel=%loginerrorlevel%+1
  if not %loginerrorlevel%== 2 goto login.incorrect
  goto :aftercommand
  </code></pre>
  
  <p>I would like to insert the "user" variable into this variable: <code>%%user%-pass%</code></p>
  
  <p>Could you help me please?</p>