title: Silent install exe files in a folder with a batch file
body: <p>I am trying to make a simple batch file that finds an exe file in a folder and does a silent install of it. So far I have been unsuccessful with this:</p>
  
  <pre><code>for /r "%CD%\folder1\folder2\" %%a in (*.exe /sPB) do start "" "%%~fa"
  </code></pre>
  
  <p>Of course this gives me the error:</p>
  
  <blockquote>
    <p>Windows cannot find 'E:\folder1\folder2\sPB'. Make sure you typed the name correctly, and then try again.</p>
  </blockquote>
  
  <p>I know that the general command for the silent install would be something like:</p>
  
  <pre><code>mysoftware.exe /sPB
  </code></pre>
  
  <p>So where should I place the "silent install flags"? I realize that I should not put it after <code>*.exe</code>.</p>