Return all files in folder and its' sub folders

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Thanks for taking the time to read my question.

At one point I had some code that looked in a specified folder and its' sub
folders and returned all the file names and file sizes, but I can no longer
find it. Does anyone know if someone has written something like this that I
can use?

I want to list out all the file names with folder path and file size of all
the files in a directory. For example, in My Documents.

I would also like all files in the folders within My Documents with the same
info.

Thanks so much for your help.

Brad
 
See:
List files recursively - List files in a folder and subfolders
at:
http://allenbrowne.com/ser-59.html

Use the FileDateTime() function to get the date and time, or FileLen() to
get the size.

Careful with the size if you have enormous files (>2gb), as FileLen()
returns a signed long.
 
Hi Allen,

I'm having a bit of trouble with the FileLen().... well actually, I'm not
sure what to do with it.

How do I use it to get my file size?

Thanks,

Brad
 
Back
Top