title: return value from batch script
body: <p>I am calling batch script from vbscript.</p>
  
  <p>In the batch script, based on condition I want to return custom exit code.  </p>
  
  <pre><code>@echo off
  setlocal ENABLEDELAYEDEXPANSION`
  for /f "usebackq" %%i in (`"%1"\fciv.exe" -md5 %2"`) do set md5_1=%%i  
  for /f "usebackq" %%i in (`"%1"\fciv.exe" -md5 %3"`) do set md5_2=%%i
  
  if "!md5_1!" == "!md5_2!" (  
      set md5_1=  
      set md5_2=  
      exit 0  
  ) else (  
      set md5_1=  
      set md5_2=  
      exit 1  
  )
  endlocal  
  </code></pre>
  
  <p>I am getting value 0 for both of the conditions. </p>
  
  <p>can anybody help me?</p>