|
-
November 21st, 1999, 04:41 PM
#1
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
-
November 23rd, 1999, 05:00 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|