I've read the board faq before I posted. I'm trying to make a 16-bit program to use with a boot disk (windows 98 probably). The object of this program is to search a hard drive for a particular file or set of files and then delete them. It is mainly going to be used to clean up virus files and such on computers and hence the reason for using a boot disk. Here is a snipet of my actual code:
Code:
int main(int argc, char * argv[]){
//code missing that doesn't really pertain to subject
char s[100]="";
strcat(s,"dir/b/s ");
strcat(s,argv[holder]);
strcat(s," > temp.dat");
cout<<"Searching..."<<endl;
system(s);
I'm trying to use djgpp to compile.