title: How do SETLOCAL and ENABLEDELAYEDEXPANSION work?
body: <p>I notice in most scripts, the two are usually in the same line as so:</p>
  
  <pre><code>SETLOCAL ENABLEDELAYEDEXPANSION
  </code></pre>
  
  <p>Are the two in fact separate commands and can be written on separate lines?</p>
  
  <p>Will setting <code>ENABLEDELAYEDEXPANSION</code> have an adverse effect on a script if it is set on the first lines of the script and not disabled until the end of the script?</p>