title: Repeat part of program while other part stays the same
body: <p>I made a chat program and I want it to auto refresh so i can get rid of the refresh option I have on it. the only problem is I would need to have everything from <code>:A</code> all to way to <code>Echo -----....</code> to repeat itself while everything below does not. And I do not want it to be split into 2 files.</p>
  
  <pre><code> :A
      cls
      Echo Server: %S%
      Echo Press Q to Quit Or Press R to refresh chat log.
      echo ---------------------------------------------------------
      type %S%.txt
      echo ---------------------------------------------------------
      set /p M=Enter Your Message:
      if "%M%"=="Q" goto B
      if "%M%"=="q" goto B
      if "%M%"=="R" goto A
      if "%M%"=="r" goto A
      echo %U%: %M% &gt;&gt;%S%.txt
      goto A
  </code></pre>