title: How to solve syntax of the command is incorrect error in batch file?
body: <p>I am using the following code in batch file.
  I am getting "Syntax of the command is incorrect " error.</p>
  
  <p>Please help me how to solve this. </p>
  
  <p>Thanks in advance...</p>
  
  <pre><code>@echo off
  For /F "tokens=1 delims==" %%A IN (proconfig.properties) DO 
  ( 
  IF "%%A"=="dbUsername" 
  set dbUsername=%%B
  ) 
  
  echo %dbUsername%
  
  pause
  </code></pre>