a simple for /f %i in ('dir /b') do @tail.exe %i ... etc would do the job but... I'm interested in a 'pure kix' solution since I want do keep dependencies down to an absolute minimum (within reason of course).