title: How to install all .exe in a folder using a batch file?
body: <p>I am trying to develop the following algorithm:</p>
  
  <p>For all files in the current folder (folder containing the script) do:
  install the files one by one</p>
  
  <pre><code>cls
  setlocal disableDelayedExpansion
  
  if %PROCESSOR_ARCHITECTURE%==x86 set arch=x86
  if %PROCESSOR_ARCHITECTURE%==AMD64 set arch=x64
  
  for /r "%~dp0" %%m in ("*.exe") do (
      set expath=%%m
      set exfile=%%~nm
  
      expath :: execute the .exe files
  )
  echo.
  echo Done! 
  echo.
  pause
  goto :eof
  
  echo %exfile%
  </code></pre>