Dr. Demento
Member
I've managed to cobble together some truly awesome work to compile a listing of all files within a directory (including subdirectories); you folks out there are amazing (shout out to azurous)!
I'm wanting to streamline the filepath output and I'm stuck. As it's written, the code provides the full file path for each individual file (column E); I would like to have the starting filepath listed once (cell E2) and the filepaths for each file be a truncated version (see column G for example), showing only the folder that was originally chosen + any subdirectory. This will capture all the filepath for the files within the "parent" directory and the "child" directories, but without the full filepath for each individual file.
I thought about using left/right functions, but I don't know how to truncate based on an entire string (E2). Any thoughts or suggestions would be much appreciated.
I'm wanting to streamline the filepath output and I'm stuck. As it's written, the code provides the full file path for each individual file (column E); I would like to have the starting filepath listed once (cell E2) and the filepaths for each file be a truncated version (see column G for example), showing only the folder that was originally chosen + any subdirectory. This will capture all the filepath for the files within the "parent" directory and the "child" directories, but without the full filepath for each individual file.
I thought about using left/right functions, but I don't know how to truncate based on an entire string (E2). Any thoughts or suggestions would be much appreciated.