title: Win32 API Copy pictures files from a directory to new/existing directory
body: <p>I want to copy all pictures file (like .jpeg, .bmp .gif) from "C:\" to a new/existing directory.
  How can i write this? Something like (*.jpg|.bmp|.gif ) ???</p>
  
  <p>Here is my code:</p>
  
  <pre><code>HANDLE hFile;
   WIN32_FIND_DATA FindFileData;
  char *strTheNameOfTheFile=new char[MAX_PATH];
  char folder[100]="D:\\myPictures\\";
  char tempFolder[100]="D:\\myPictures\\";
  
  SetCurrentDirectory("D:\\");
          hFile=FindFirstFile("*.jpg",&amp;FindFileData);// Here is my problem | *.jpeg | *.bmp | *.gif
          strTheNameOfTheFile = FindFileData.cFileName;
          strcat(folder,strTheNameOfTheFile);
          CopyFileEx(strTheNameOfTheFile,folder,NULL,NULL,NULL,NULL);
          MessageBox(hDlg,strTheNameOfTheFile,"Oh",MB_OK);
          strTheNameOfTheFile=NULL;
          folder[0]='\0';
          strcpy(folder,tempFolder);
          while(FindNextFile(hFile,&amp;FindFileData))
          {
  
              strTheNameOfTheFile = FindFileData.cFileName;
              strcat(folder,strTheNameOfTheFile);
              CopyFileEx(strTheNameOfTheFile,folder,NULL,NULL,NULL,NULL);
              strTheNameOfTheFile=NULL;
              folder[0]='\0';
              strcpy(folder,tempFolder);
          }
  MessageBox(hDlg,"Done!","Finished",MB_OK);
  
  FindClose(hFile);
  </code></pre>