How to list files in a directory and all subdirectories - VisualCron - Forum

Community forum

J Kruger

I need to know how to list all files in a directory and sub-directories.

Job needs to do this:

1) Check directory and sub-directories / folders at 8.00am (for example)
2) Email notification to recipients with all files present in directory and sub-directories listed. So the file paths, file names and date / time file was last modified need to be written to a text file and or email.

Is this possible?

Thanks, Judi
Hi Judi,

With a batch file you can show up all the files and directories. You can do this with the DIR command. Use some options to see all the subdirs.
Than you can use this output as the content of your email or for a file write task.

Uses Visualcron since 2006.
Scroll to Top