title: can I implement a kill switch into a .bat fork bomb?
body: <p>I want to show a friend how big the impact of a fork bomb can be on performance, but without needing to restart the computer afterwards.</p>
  
  <p>Assuming the following fork bomb:</p>
  
  <pre><code>%0|%0
  </code></pre>
  
  <p>Is there a way to add a kill switch to this which, with one button press, will stop all running copies of this file, stop any new from being created and hopefully save the machine? I'm not really familiar with the command prompt syntax, so I'm not sure.</p>