Solved

Using CFileFind

Posted on 1997-03-17
1
866 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dog bark java program 15 87
Doc'in system (example?) BA 7 88
isEverywhere  challenge 19 72
Message not shown 5 33
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now