|
-
May 14th, 1999, 12:39 AM
#1
masterx
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
-
May 14th, 1999, 02:03 AM
#2
Re: masterx
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()?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|