title: How can I stop or exit batch file
body: <p>I've created a simple batch file to reorganize a set of files/folders. It's working as it should, but I need to print the results to a log file, and now, I can't stop it, please help me.</p>
  
  <pre><code>@echo off 
  cls
  del/f c:\SWSETUP\info.txt
  systeminfo.exe &gt;&gt;c:\SWSETUP\info.txt
  find /i "System Model:" c:\SWSETUP\info.txt
  find /i "OS Version" c:\SWSETUP\info.txt
  del/f c:\SWSETUP\log.txt
  netsh mbn show interfaces &gt;&gt; c:\SWSETUP\log.txt
  find /i "Model" c:\SWSETUP\log.txt
  find /i "Firmware Version" c:\SWSETUP\log.txt
  test.bat &gt;&gt; result.txt
  @GOTO :EOF
  </code></pre>