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

    VB with window Explorer

    How do I loop through the subfolders in a specific folder of the window explorer and write the information(file size,file name, motify date) about the files in the folders

    any help appreciated

    Han


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: VB with window Explorer

    IF you are comfortable with API stuff you could take a look at how to do this with FindFirstFile and FindNextFile

    Or you want to do the "Pure" vb way,

    1. Have a File List box on a form and make it invisible.
    2.ChDir with VbDirectory flag tell you if a file is a directory or not. Using this you can loop thru all the sub directories of a dir.
    3. in a loop keep changing the Directory of the FileListbox, and .Refresh, whill will fill the lb with file names.. set the filefilter to *.*
    4. Repeat steps 2 & 3.

    Roughly that is the outline!
    All the best :-)

    RK

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