Solved

Using CFileFind

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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