C:\> for %f in (test\*.txt) do youprogram.exe %f