I built a program which would take a given directory, list all
sub-directories and files in them to a spread sheet, allow you to modify the
names, attributes, and/or directories for all files, and go back through the
list to re-name, move, and alter attributes to the files. Came out pretty
handy. I used a recurisve method to push new directories encountered onto a
stack and when the time came, pop them off and treat them like the
originally selected directory. (Recursion was controlled by the user, so it
didn't confuse the user too much. He could work with just one directory or
the whole shebang.)
But I'm not really that advanced in VBA. I just used simple file
manipulation techniques:
ChDrive to select the disk
ChrDir to select the directory
Name to change a files name and/or the directory in which it resides
SetAttr to change attributes
But most importantly, the Dir function to get files listed in a directory.
Could look something like this ...
fnm = Dir("d:\pathnameyouwanttofindfilesanddirectoriesin", vbNormal)
do until fnm = "" 'No more files in that directory
Put 'er in the listbox using .Additem
if fnm is a directory, remember this for later processing
fnm = Dir 'Get the next file name in the directory
loop
If this isn't totally off the wall, I'd be happy to expound on this type of
program for you and give you more specific hints.
-Tim