title: How to make a BAT loop taskkill every 3 times it performs a task?
body: <p>I need to make a BAT loop, but to perform taskkill every 3 times it opens google chrome.</p>
  
  <p>I've tried to copy paste the code multiple times, but it opens only the first loop from the CSV file</p>
  
  <p>This is my code:</p>
  
  <pre><code>@echo off
  for /f "delims=" %%a in (list.csv) do (
      start chrome "https:\\%%a"
      timeout 5
      taskkill /f /im chrome.exe
  )
  </code></pre>
  
  <p>I just want it to run as it is now, but to perform taskkill every 3 times, not in every single time it goes to the browser</p>
  
  <p>CSV content (I use Column A only):</p>
  
  <pre><code>www.google.com
  www.facebook.com
  www.instagram.com
  </code></pre>
  
  <p>repeated 300 times.</p>