Recommended Free Tools
To print a folder’s file list in Windows 10 or 11, save its Command Prompt output as a text file, then print that file. In File Explorer, open the folder, type cmd in the address bar and press Enter. Run dir /b > filelist.txt for names only, or dir > filelist.txt for a detailed listing. Open filelist.txt in a text editor and print it.
Choose what the list should show
Windows’ built-in dir and tree commands work for this task in both Windows 10 and Windows 11. The right command depends on whether you need just names, file details, subfolders, or a visual hierarchy.
As an Amazon Associate I earn from qualifying purchases.
| What you need | Command | What it produces |
|---|---|---|
| Names in the open folder | dir /b > filelist.txt |
A bare list without the usual extra details. |
| Names and directory details | dir > filelist.txt |
The standard listing, including modification date and time, file size, and directory information. |
| Names throughout the folder and its subfolders | dir /s /b > filelist.txt |
A bare recursive listing of paths. |
| Folder hierarchy with filenames | tree /f /a > filelist.txt |
A text-based tree; /f includes filenames and /a uses text characters for the branches. |
Save and print the list from File Explorer
-
Open the folder you want to list in File Explorer.
-
Click the address bar, type
cmd, and press Enter. A Command Prompt opens at that folder. This address-bar shortcut is community guidance; the commands themselves are documented by Microsoft.What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Enter the command that matches the output you chose above and press Enter. The
>operator writes the command’s output tofilelist.txt.#1 Best Overall
Amazon Basics Multipurpose Copy Printer Paper, 8.5 x 11 Inches, 20 lb, 92 Bright, White, 1 Ream (500 Sheets), Jam-Free- 1 ream (500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
-
Open
filelist.txtin Notepad or another text editor, then use that application’s Print command.
Adjust the listing for special cases
Include hidden and system items
By default, dir excludes hidden and system files. Add /a to include them; without an attribute after it, /a includes all items. For example, use dir /a /b > filelist.txt for a bare list that includes hidden and system items.
Rank #2
- HP Papers is sourced from renewable forest resources and has achieved production with 0% deforestation in North America. Each ream is wrapped in a polyurethane coated paper wrapper to protect the cut sheets from moisture damage
- Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
- HP Copy&Print20 20 pounds printer paper is Forest Stewardship Council (FSC) certified and contributes toward satisfying credit MR1 under LEED (Leadership in Energy and Environmental Design)
- All HP Papers provide premium performance on HP equipment, as well as on all other printer and copier equipment; 100% satisfaction guaranteed; ColorLok technology provides more vivid colors, bolder blacks and faster drying
- Superior quality, reliability, and dependability for high-volume printing at home, at school and in the office; HP Copy&Print20 print and copy paper prevents yellowing over time to ensure a long-lasting appearance for added archival quality
Sort names or dates
Add /o:n to sort alphabetically by name, or /o:d to sort by date and time, oldest first. A minus sign before the sort code reverses its order. For example, dir /o:-d > filelist.txt sorts by date and time in reverse order.
Keep the output file out of the listing
If you save filelist.txt in the folder being listed, the output file may appear in the listing, depending on when and how the list is generated. To avoid that, save the output elsewhere, such as dir /b > %temp%filelist.txt. You can then open the file from the temporary folder.
Rank #3
- 3 ream case (1,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Use PowerShell when you need scripting or filtering
PowerShell’s Get-ChildItem can enumerate items and traverse child folders with -Recurse. For example, this saves a recursive listing to a file in the temporary folder:
Get-ChildItem -Path 'C:pathtofolder' -Recurse | Out-File -FilePath "$env:TEMPfilelist.txt"
Replace C:pathtofolder with the folder’s actual path. PowerShell also offers -Depth to limit how many levels it traverses. This simple pipeline is useful for enumeration, but its output should not be assumed to have a polished, fixed column layout for printing.
Rank #4
- 5 ream case (2,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Why saving to a text file is usually the practical route
Microsoft’s dir documentation also describes redirecting output to prn for a printer attached to the LPT1 port, with a different port substituted when appropriate. For a contemporary desktop workflow, saving the output as a text file and printing it from an application is more flexible.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Quick Recap
Best Value
- 8 ream case (4,000 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




