@echo off
setlocal enabledelayedexpansion
for %%i in (C:\testImg_w640h480const5ang90blur3noise2\*.txt) do start pre_process "%%i"
setlocal enabledelayedexpansion
for %%i in (C:\testImg_w640h480const5ang90blur3noise2\*.txt) do start pre_process "%%i"
pause
for %%i in (*.txt) do echo "%%i" 这个循环语句对于目录中的所有txt文件,执行echo(可以换成其他动作)