title: How to pass variables from one batch file to another batch file?
body: <p>How do I write a batch file which gets an input variable and sends it to another batch file to be processed.</p>
  
  <p><strong>Batch 1</strong></p>
  
  <p>I don't know how to send a variable to batch 2 which is my problem here.</p>
  
  <p><strong>Batch 2</strong>  </p>
  
  <pre><code>if %variable%==1 goto Example
  goto :EOF
  
  :Example
  echo YaY
  </code></pre>