Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CFileFind

CFileFind

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ykutanoor
    wrote on last edited by
    #1

    I am doing a search for a particular directory (1). If the directory is found then I am going to the last sub directory of 1. Then I am listing all the files in these directory. Pls kindly help me in this respect. CFileFind l_fileFind; //Find the root directory bool l_bool = l_fileFind.FindFile(_T("D:\\Epson\\CPS")); while(l_bool) { l_bool = l_fileFind.FindNextFile(); if (l_fileFind.IsDirectory()) { //List all the files } }

    A 1 Reply Last reply
    0
    • Y ykutanoor

      I am doing a search for a particular directory (1). If the directory is found then I am going to the last sub directory of 1. Then I am listing all the files in these directory. Pls kindly help me in this respect. CFileFind l_fileFind; //Find the root directory bool l_bool = l_fileFind.FindFile(_T("D:\\Epson\\CPS")); while(l_bool) { l_bool = l_fileFind.FindNextFile(); if (l_fileFind.IsDirectory()) { //List all the files } }

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Just do the whole thing again, a filefind in the new directory with \*.* at the end.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups