title: How to set up a time out for a robocopy command in batch?
body: <p>I'm struggling to set a time out to a <strong>robocopy</strong> batch. After a while it should exit the <strong>robocopy</strong> command even it's not ended.</p>
  
  <pre><code>for /f %%i IN (servers.txt) DO (
      rem insert the counter of time out
      robocopy C:\test \\%%i\C$\test /S
  )
  </code></pre>
  
  <p>Sometimes <strong>robocopy</strong> freezes on one server.</p>