How To Create A File Listing That Includes SubDirectories

richlocus
2StarLounger
Posts: 149
Joined: 03 Oct 2015, 00:30

How To Create A File Listing That Includes SubDirectories

Post by richlocus »

Hello:

There used to be a program called XTREE Gold that allowed the user to select a directory, and then provide the filename, date created or updated, for all the files in that directory and then the files in the subdirectory of that directory.

After reviewing the complexities of the DIR command, I'm reaching out to the experts.

For example, I have a directory as shown below:
C:\Users\RichLocus\Documents\LogicwurksClients\MeridianSoftware\

Within Meridian Software there are multiple sub-directories that themselves have subdirectories.

How can I get a listing of every file in that tree, that includes the filename and the last update date?

Thanks in advance
Rich Locus

User avatar
Jay Freedman
Microsoft MVP
Posts: 1313
Joined: 24 May 2013, 15:33
Location: Warminster, PA

Re: How To Create A File Listing That Includes SubDirectories

Post by Jay Freedman »

In a command window (run cmd.exe), execute the DIR command with the path of the starting folder, then a space, and then the switch /s. You can add or omit other switches to customize the output.

If you want to redirect the output to a file, add the > operator followed by the path and name of the output file.

User avatar
DaveA
GoldLounger
Posts: 2599
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: How To Create A File Listing That Includes SubDirectories

Post by DaveA »

Or even go to https://www.karenware.com/karens-power- ... or-windows
And download and install Directory Printer.

Also note that there a several other programs there that just may be useful!
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

richlocus
2StarLounger
Posts: 149
Joined: 03 Oct 2015, 00:30

Re: How To Create A File Listing That Includes SubDirectories

Post by richlocus »

Thanks to both of you! I will check out the options.
Best,
Rich Locus

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

Re: How To Create A File Listing That Includes SubDirectories

Post by JoeP »

Check out the Get-ChildItem cmdlet in PowerShell. If you are new to PowerShell see [url=https://docs.microsoft.com/en-us/powershell[PowerShell Documentation[/url] for much more information.
Joe