Creating a list of a folder’s contents in Windows is very straightforward. All you must do is fireplace up the Command Prompt and enter a simple command: dir > FILENAME.txt.
Doing so runs the command dir however as an alternative of echoing it within the command immediate window it redirects the output into the file filename.txt.
The resultant textual content file could also be ample for most individuals, however in case you have a ton of sub-folders and files it’s your decision one thing higher.
I would advocate utilizing DirLister, an open source listing printer. I’ve been utilizing the appliance since model 1 (nonetheless have v 1.zero put in), when it may solely save the list in HTML and TXT codecs.
DirLister is now in beta model 2. I examined it a few months in the past and discovered it to be very completely different; in a great way. It had a higher interface with a lot extra choices.
Here’s a comparability screenshot to indicate you what I meant.
DirLister Interface and primary utilization
There are four tabs in DirLister: Input, Output, Log and About. You will solely be working with the primary 2 of these nearly solely. Use the “Select folder” button within the Input tab to navigate to the folder that you just want to print. Now, head to the Output tab and select the folder in which the output file must be saved.
Tip: DirLister helps drag-and-drop for file choice.
The Start button (which is persistent throughout tabs) can be used for initiating the listing printing course of: watch for it to finish.
The Output tab has a pre-enabled choice to open your output file its corresponding app after it is created. You can disable this feature if you wish to. For e.g. The HTML possibility which is the default one, opens the file in your internet browser.
The Input tab has choices to incorporate hidden/system files. You can set the program to print sub-folders and their contents utilizing the Recursive mode. There are a couple of search filters (wildcards and Regex). as nicely to assist superior searches, e.g. if you need to print solely the list of files within the PNG format, add *.PNG to the wildcard.
Tip: You can set any wildcard for the extension you need.
The Output tab permits you to print the list in 6 codecs: HTML, TXT, CSV, XML, JSON and MD.
Tip: You can select multiple format to print the output in.
The output file can be custom-made barely. By default, it contains the filenames, the file measurement and the total path of the folder. However, you can select to disable the file measurement possibility. Other choices that you just can toggle in DirLister embody the created/modified date and the media information (e.g. decision, body price, audio bit price, pattern price)
DirLister 2 is transportable, however you can allow the context-menu for Windows File Explorer, from the Output tab. It does have some limitations, essentially the most notable of which are the filters. These are utterly disabled if you use the DirLister context-menu. For greatest outcomes, I like to recommend setting the default choices of the program earlier than utilizing the menu.
When the menu possibility is enabled, open File Explorer and right-click on any folder. Select the DirLister (list files) possibility. It will create the output file and open it within the corresponding software (in case you have the choice enabled). You can optionally allow the “Open UI” choice to show the program’s interface, as an alternative of letting it silently create the list if you use the context menu. Another possibility which you can toggle, is the “Show progress window” when the list is being created.
If you are in search of a file comparability program, Martin has written about a few here. Karen’s Directory Printer is one other good software which you can use for printing a folder’s contents. But it has a lot extra bells and whistles than DirLister presents.