cindyhan
November 21st, 1999, 03:41 PM
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
Ravi Kiran
November 23rd, 1999, 04:00 AM
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