Solved

Using CFileFind

Posted on 1997-03-17
1
883 Views
Last Modified: 2013-11-20
While using CFileFind in a recursive directory search for all .WAV files, it appears to skip a WAV file in my C:\WINDOWS\TEMP directory.  I'm concerned that this problem may happen other places I haven't caught yet.  I've traced through, and CFileFind::FindNextFile() simply never sees it, even if I ONLY scan C:\WINDOWS|TEMP.

Is there a known problem here or some gotcha?

Also, how do I extract the short file name (8.3) of the CFileFind results?
0
Comment
Question by:mikegar031697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1300470
In this case, please check your hard disk with scandisk first to make sure there is no error with it. Also, copy all the files under C:\WINDOWS\TEMP to another directory and try your program again to see what happens.

You can call GetShortPathName() to get the short file name.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question