There are many .exe files in the folder, from it I run a batch file, which should run all these files. How to do?

  • @ ttt111, If ​​you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Nicolas Chabanovsky

1 answer 1

Here is an example of running the * .exe in turn through the for loop in the C drive directory:

@echo off setlocal enableextensions %~d0 for /r C:\ %%i in (*.exe) do start /wait "" "%%i" pause