Solved

Using CFileFind

Posted on 1997-03-17
1
863 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

17 Experts available now in Live!

Get 1:1 Help Now