title: How to give a timer to a windows command?
body: <p>How can you give <strong><em>ANY</em></strong> windows command a timer before canceling/force exiting/terminating the command?</p>
  
  <p>I have done a lot of searching on the internet and came across:
  waitfor, timeout, sleep, etc, but none have helped.</p>
  
  <p>Lets say I have a huge file, and from the windows command prompt and I am catting it out:</p>
  
  <pre><code>..../Desktop&gt; cat hugefile.txt
  </code></pre>
  
  <p>But if it doesn't finish in say 5 seconds, to stop it?</p>
  
  <p>Could look like:</p>
  
  <pre><code>..../Desktop&gt; timer(cat hugefile.txt) 5
  </code></pre>
  
  <p>or something?</p>