I am trying to develop the following algorithm:
For all files in the current folder (folder containing the script) do: install the files one by one
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%