通过父bat文件运行文件夹w中的bat文件

ABA*_*UNT 2 directory loops batch-file

我想知道如何创建一个bat文件来执行在特定目录中找到的所有其他bat文件?

Ale*_* K. 5

单程

for %%f in (c:\xxx\*.bat) do (
   call %%f
)
Run Code Online (Sandbox Code Playgroud)

(要从同一文件夹运行它,您需要排除执行文件)

if %%f neq %0.bat (
    call %%f
)
Run Code Online (Sandbox Code Playgroud)