October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk2 min

Print a Windows 10 or 11 Folder File List: Quick Steps

Save a Windows 10 or 11 folder listing as a text file with Command Prompt, then open and print it. Choose a simple names-only list, details, recursive paths, or a tree.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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

  1. Open the folder you want to list in File Explorer.

  2. 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.
  3. Enter the command that matches the output you chose above and press Enter. The > operator writes the command’s output to filelist.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
  4. Open filelist.txt in 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 Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
  • 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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
  • 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
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
  • 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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Amazon Basics Multipurpose Copy Printer Paper, 8.5 x 11 Inches, 20 lb, 92 Bright, White, 1 Ream (500 Sheets), Jam-Free
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; Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$6.97
Bestseller No. 2
HP Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
HP Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
$6.97
Bestseller No. 3
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$21.96
Bestseller No. 4
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$29.14
Bestseller No. 5
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$53.19
Best Value
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
  • 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.