in DOS command; in C without passing by DOS, eg without using:
#include <process.h>
...
system("FOR /F %i IN (list_file.txt) DO program.exe %i");
...
or
#include <process.h>
...
while(*file_name)
{
wsprintf(str,"program.exe %s",file_name);
system(str);
.....
}
....