title: How do you use SETLOCAL in a batch file?
body: <p>How do you use <code>setlocal</code> in a batch file? I am just learning scripting and would like it explained to me in very simple terms.</p>
  
  <p>I have a script that stops and says <code>&lt; was unexpected at this time</code> it may have something to do with not having any <code>setlocal</code> statements in the script.</p>