If you just want a printed listing of what’s inside a folder, here’s what you do.
Open the Command Prompt. To do that, click Start, type CMD, then right-click Run as administrator.
Change the directory to the folder you want to print the contents of. To do that, use the cd command—for example, “cd c:\users\yourusername\documents”.
Type the following command and hit Enter: dir > listing.txt
This will generate a basic text file listing the contents of the directory. The filename you save can be anything you want. You can call it listing.txt, files.txt, folder.txt or whatever.
This is what it looks like:
If you want to go a step further, you can print the contents of subfolders by issuing the following command: tree “c:\directory_name” > “c:\file_name.txt” /A /F
TIP: On the command line, using “>” will always send the output of the command to a file. It works with any command. You can also use “>>” to append the output to the end of an existing file.
Source:
https://www.groovypost.com/tips/print-contents-...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.