How to Print a List of Files in a Windows 11 or 10 Directory

·
6 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

You need to print a list of files in a Windows directory, but File Explorer has no obvious Print command for folder contents. Start with Copy as path if you need a quick list; use Command Prompt or PowerShell when you need cleaner output.

Fix #1: Copy file paths from File Explorer

This method requires no commands. It copies the full path of every selected item, which works well for a short list you can paste into Notepad, Word, or Excel.

  1. Open File Explorer and browse to the folder you want to list.
  2. Select the files and folders you need, or press Ctrl+A to select everything.
Windows 11 File Explorer with several files and folders selected in Details view
  1. Right-click the selection and choose Copy as path. If that option isn’t visible, hold Shift while right-clicking.
Windows 11 File Explorer context menu for selected files with Copy as path highlighted
  1. Open Notepad, Word, or Excel.
  2. Press Ctrl+V to paste the paths.
  3. Press Ctrl+P, choose your printer, and select Print.

You should see one quoted path per line. The quotation marks are part of the copied text, so remove them with Find and Replace if you only want names and paths.

Fix #2: Create a text list with Command Prompt

The dir command creates a printable directory listing without extra software. Typing cmd in File Explorer’s address bar also avoids getting stuck on the confusing cd command.

  1. Open File Explorer and browse to the folder you want to list.
  2. Click the address bar, type cmd, and press Enter.
Windows 11 File Explorer open to a target folder with cmd typed in the address bar
  1. Confirm that Command Prompt opens at the target folder’s path.
Command Prompt opened from File Explorer with the prompt showing the target folder path
  1. Enter the command that matches the list you need:
GoalCommand
Names, sizes, and modified datesdir > file-list.txt
Names onlydir /b > file-list.txt
Include subfoldersdir /s /b > file-list.txt
Include hidden and system itemsdir /a /s /b > file-list.txt
Sort by modification datedir /o:d > file-list.txt
Sort by sizedir /o:s > file-list.txt

For example, run:

dir /s /b > file-list.txt
Command Prompt in the target folder with dir /s /b > file-list.txt entered and completed

The > character sends the results to a file instead of displaying them in the Command Prompt window. Windows creates file-list.txt inside the current folder.

  1. Return to File Explorer and open file-list.txt in Notepad.
Notepad displaying file-list.txt with one full file or folder path per line
  1. Press Ctrl+P, select your printer, and choose Print.

Use dir /b when you want a clean list for Excel. Use dir /s /b when files inside subfolders must appear too.

Microsoft’s dir command documentation covers additional switches for attributes, sorting, and output formats.

Fix #3: Export file details to CSV with PowerShell

PowerShell is the better option when you need separate columns for names, paths, sizes, and dates. The resulting CSV opens directly in Excel.

  1. Open File Explorer and browse to the folder you want to list.
  2. Right-click an empty area inside the folder and select Open in Terminal. The wording or placement can vary by Windows version, so open Windows Terminal from Search if the option isn’t shown.
  3. Make sure the terminal tab is running PowerShell.
Windows Terminal with a PowerShell tab open at the target folder path
  1. Run this command to export files and folders from the current directory and its subfolders:
Get-ChildItem -Recurse |
  Select-Object Name, FullName, Length, LastWriteTime, CreationTime |
  Export-Csv -Path "$env:USERPROFILE\Documents\folder-details.csv" -NoTypeInformation
Windows Terminal PowerShell tab showing the Get-ChildItem command completed without errors

PowerShell creates folder-details.csv in your Documents folder. Each selected property becomes its own column.

  1. Open Documents, then double-click folder-details.csv.
  2. Confirm that Excel displays columns for the name, full path, size, modified date, and creation date.
  3. Use Excel’s filters or sorting controls to arrange the list.
  4. Select File > Print to preview and print it.

The Length column reports file sizes in bytes. Folders don’t have a value in that column, which is expected.

If the full export is too large, narrow it to one file type. This example exports only PDF files:

Get-ChildItem -Recurse -Filter *.pdf |
  Select-Object Name, FullName, Length, LastWriteTime |
  Export-Csv -Path "$env:USERPROFILE\Documents\pdf-files.csv" -NoTypeInformation

Fix #4: Import a Command Prompt list into Excel

A dir /b list gives you one item per line, but Excel lets you sort, filter, and format that output before printing. This is handy when the plain Notepad result feels too rough.

  1. Create the list with dir /b > file-list.txt.
  2. Open Excel and select Data > From Text/CSV.
  3. Choose file-list.txt, then select Import.
Excel Data tab with From Text/CSV highlighted and file-list.txt selected for import
  1. Check that each file or folder name appears on a separate row.
  2. Select Load.
  3. Add a heading such as File Name, then adjust the column width.
  4. Select File > Print and review the preview.
Excel print preview showing a formatted one-column directory listing ready to print

You should now have a readable spreadsheet instead of the raw dir output. If you need size and date columns, use the PowerShell CSV method instead.

Fix #5: Generate a report with a directory-listing app

A dedicated app makes sense when you create these reports regularly or need filters, custom columns, PDF output, or a folder-tree layout. I’d skip this step for a one-time list because Windows already has the necessary tools.

  1. Install a current directory-reporting utility such as Directory List & Print, Print Maestro, or Folder2List.
  2. Open the utility and select the folder you want to report.
  3. Choose whether to include files, folders, and subfolders.
Directory List & Print with a target folder selected and file, folder, and subfolder options visible
  1. Select the columns you need, such as file name, full path, size, creation date, and modified date.
  2. Preview the report and check that the expected files appear.
Directory List & Print preview showing file names, paths, sizes, and modified dates in separate columns
  1. Export the report to a supported format such as CSV, Excel, PDF, HTML, or text.
  2. Open the exported document and print it from the associated app.

Available columns and export formats depend on the utility and edition. Check the preview before printing, especially when subfolders contain thousands of files.

Fix #6: Print a small folder view as an image

A screenshot works when the entire list fits inside one File Explorer window. It preserves the visible columns, but it won’t capture files below the scroll bar.

  1. Open the folder in File Explorer.
  2. Select View > Details.
  3. Resize the columns so the names, dates, types, and sizes you need are visible.
Windows 11 File Explorer in Details view with Name, Date modified, Type, and Size columns visible
  1. Press Alt+Print Screen to copy the active File Explorer window.
  2. Open Paint and press Ctrl+V.
Paint showing a pasted screenshot of a File Explorer folder in Details view
  1. Crop any unnecessary window borders.
  2. Select File > Print > Print preview.
  3. Adjust the page orientation or scaling, then print the image.

Use this only for a short folder. A text or CSV export is easier to read and search when the list spans several screens.

When the list is incomplete or too large

Check whether your command includes /s or PowerShell includes -Recurse if subfolder contents are missing. Add /a to a dir command when hidden or system items must appear.

Large drives can produce unwieldy files and take time to scan. Run the command inside a smaller folder or filter by file type; Excel also has worksheet size limits, so splitting a huge report into several CSV files is safer.

Conclusion

Fix #1, Copy as path, usually works for a quick printable list. For a polished spreadsheet, PowerShell is the breakthrough: the CSV opens with separate metadata columns, and the extra setup is worth the effort.