Create File list with file path header

User avatar
Timelord
4StarLounger
Posts: 504
Joined: 23 Jul 2010, 18:36
Location: Westlake, OHIO

Create File list with file path header

Post by Timelord »

I have a folder full of other folders that then have files in them. For example:

c:\first_folder\second_level1
c:\first_folder\second_level2
c:\first_folder\second_level3

and so on. In the second_level folders are files. I would like to get the names of those files and their folder names as well output into a file like the one attached.

I found this:

Code: Select all

dir /s > output.txt

but this is clearly not everything I would need. Any help would be appreciated. Also, if the results could be edited to look like:

name_of_file_without_extension,location_of_file_and_the_filename_with_extension

ie.
tombstone,\graveyard\tombstone.jpg
You do not have the required permissions to view the files attached to this post.
Who will you Inspire today?

JoeP
SilverLounger
Posts: 2067
Joined: 25 Jan 2010, 02:12

Re: Create File list with file path header

Post by JoeP »

Not sure if it will do the filename without the extension but see if Directory Printer will work.

Joe
Joe

User avatar
Timelord
4StarLounger
Posts: 504
Joined: 23 Jul 2010, 18:36
Location: Westlake, OHIO

Re: Create File list with file path header

Post by Timelord »

Unfortunately we are not allowed to download software here or vba code. I got a blocked message when I tried. (No doubt the phone call will come shortly) :scold:
Who will you Inspire today?