CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: masterx

  1. #1
    Join Date
    May 1999
    Posts
    12

    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


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    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()?



    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured