rem for all subdirectories with names starting with "exp-": for /d %%i in ("exp-*") do test-mt-plots.py %%i