Hi, guys, Spain talking...
That's what I'm trying to do: I want to catalog some freewares in a CD. I have collected them in a folder tree. Each branch typically contains at least one exe file and some html, txt and / or dll that can vary or even not exist (but at least one exe).
What I want to code is a function that receives the root path that contains all branches (i.e. c:\MyCD\) (but in order to reuse I want to pass it as parameter i.e. from a dirlistbox). Then the function recursively checks each branch, and performs two jobs: 1) determine the name and size of the branch (folder) and 2) obtain the name of the exe inside it. Then it stores the three values in fields of a database.
I'm sure it's easy for you, experts, but I've never worked with scripting.filesystemobject nor with API FindFileFirst. I don't know which method is better (I don't need extreme speed, it's only to catalog 650 MB in a let's say 200-branch tree). I would appreciate code better than discussion about one or other method, as I've said I've never dealed with them and I've no idea of methods and API calls.
Ah! Very important: I work with VB 5 (I prefer 5 paid than 6 or NET pirated, you know) I say it because I've heard some things can only be made with VB6.
Thanks in advance. If you have any more question, please let me know. Greetings from the Olympic Barcelona, Spain.