Greetings:
That`s my question, until know i`ve been doing it by a batch file that i execute then read, is there a way to do it without the batch?, what i need is to list all of the Word (.doc) files of a given directory
Thanks in advance

/*
Name: Praveen Kr.
email id: [email]prvnkmr449@gmail.com[/email]
mobile no.:08808130075
for any programming help u can contact on this id.
*/

int main()
{
DIR *dir;
struct dirent *ent;
        dir = opendir ("c:\\tcpp\\");
if (dir != NULL) {

  /* print all the files and directories within directory */
  while ((ent = readdir (dir)) != NULL) {
    printf ("%s\n", ent->d_name);
  }
  closedir (dir);
} else {
  /* could not open directory */
  perror ("");
  return EXIT_FAILURE;
}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.