title: Batch File to execute all .exe in a folder with count
body: <p>I have quite a few <code>exe</code> files, I want to run them with a single batch file. As far as I understand, these two codes work for me;</p>
  <pre><code>for %%a in (&quot;\*.exe&quot;) do start &quot;&quot; &quot;%%\~fa&quot;
  
  for %%i in (\*.exe) do start &quot;&quot; /b &quot;%%i&quot;
  </code></pre>
  <p>But that <code>cmd</code> screen closes when all files are run. What I want is this: That <code>cmd</code> screen will not close when the process is finished and will show me the result (counting if possible), a code that can count how many of these .exe files work and how many fail.</p>
  <p>So for example;
  87 files blocked
  13 files could not be blocked
  Something like this? Is this possible?</p>