Click to See Complete Forum and Search --> : masterx


masterx
May 14th, 1999, 12:39 AM
Question:

How do I programmatically all of the files in a directory that have a specific known extension.

I have tried FindFirstFile along with FindNextFile along with DeleteFile(), but am having a problem with the FindFirstFile function. I would prefer a solution that did not involve this function.

Thanks,

Austin

Jason Teagle
May 14th, 1999, 02:03 AM
You could use CListBox's Dir() method with "*.TXT" (or whatever extension) as the filespec, but this only lists files in 8.3 format (although for deleting, that shouldn't matter). But what difficulty are you having with FindFirstFile()?