How to Print a List of Files in a Folder (Windows, Mac, Linux)
Five built-in ways to print, copy, or export the file names in a folder: Command Prompt, Copy as path, PowerShell to CSV, Excel's From Folder, and Mac Terminal.
Quick Answer
Windows has no Print button for a folder, so save the list to a text file first: open the folder, type cmd in the address bar, run dir /b > filelist.txt, then print it with notepad /p filelist.txt. On a Mac, select all in Finder, copy, and paste into a plain-text TextEdit document, or run ls -1 > filelist.txt in Terminal.
Below are five methods, from fastest to most detailed. Pick the one that matches what you need on paper: names only, full paths, or a spreadsheet with sizes and dates.
Method 1: Command Prompt (Windows 10 and 11)
This is the quickest way to print a list of files and needs nothing installed.
- Open the folder in File Explorer.
- Click the address bar, type
cmd, and press Enter. Command Prompt opens already pointed at that folder. - Run one of the commands below.
:: File and folder names only
dir /b > filelist.txt
:: Files only, no subfolder names
dir /b /a-d > filelist.txt
:: Include every subfolder (full paths)
dir /b /s /a-d > filelist.txt
:: Names with dates and sizes
dir > filelist.txt
:: Print the list on the default printer
notepad /p filelist.txt> sends the output into filelist.txt inside the same folder. Because the file is created before dir runs, filelist.txt itself appears in the list; delete that line or write the file elsewhere, for example dir /b > %USERPROFILE%\Desktop\filelist.txt.
To copy the names straight to the clipboard instead of a file, run dir /b | clip and paste into Word, Excel, or an email.
Method 2: Copy File Names From File Explorer
If you would rather not open a command window, File Explorer can copy the paths for you.
- Open the folder and press Ctrl+A to select everything.
- Windows 11: press Ctrl+Shift+C, or right-click and choose Copy as path. Windows 10: hold Shift, right-click, and choose Copy as path.
- Paste into Notepad, Word, or Excel and print.
Each line is the full path wrapped in quotes, such as "C:\Invoices\2026-03.pdf". To keep just the names, use Find and Replace: replace " with nothing, then replace C:\Invoices\ with nothing.
Method 3: PowerShell to a CSV You Can Open in Excel
When you need sizes and dates in separate columns, PowerShell writes a CSV that Excel opens directly. Open the folder, type powershell in the address bar, press Enter, and run:
# This folder only
Get-ChildItem -File |
Select-Object Name, Length, LastWriteTime |
Export-Csv -Path "$HOME\Desktop\filelist.csv" -NoTypeInformation
# Include subfolders, with full paths
Get-ChildItem -File -Recurse |
Select-Object FullName, Length, LastWriteTime |
Export-Csv -Path "$HOME\Desktop\filelist.csv" -NoTypeInformation
# Names only, straight to the clipboard
Get-ChildItem -Name | Set-ClipboardLength is the size in bytes. Writing the CSV to the Desktop keeps it out of the list itself.
Method 4: Excel's From Folder (No Commands)
Excel for Windows (2016 and later, including Microsoft 365) can read a folder on its own:
- Go to Data > Get Data > From File > From Folder and pick the folder.
- Choose Transform Data. Power Query shows one row per file, including files in subfolders, with Name, Extension, Date modified, Date created, and Folder Path.
- Right-click the Content column and remove it, then click Close & Load.
The result is a normal Excel table you can sort, filter, and print. Click Refresh later to update it after files change. Got a list with repeats in it? Our free spreadsheet duplicate finder highlights repeated file names in a CSV or Excel file.
Method 5: Mac (Finder or Terminal)
Finder and TextEdit
- Open the folder in Finder, press Command+A, then Command+C.
- Open TextEdit, choose Format > Make Plain Text, and press Command+V. The file names paste one per line.
- Press Command+P to print.
Terminal
cd ~/Documents/Invoices
# Names, one per line
ls -1 > ~/Desktop/filelist.txt
# Every file in every subfolder
find . -type f > ~/Desktop/filelist.txt
# Print it
lpr ~/Desktop/filelist.txt
# Or copy names to the clipboard
ls -1 | pbcopyTip: type cd and drag the folder from Finder into the Terminal window to paste its path.
Linux
The Mac Terminal commands work the same way. Add sizes and dates with ls -l:
ls -1 > filelist.txt # names only
ls -lh > filelist.txt # sizes and dates
find /path/to/folder -type f > filelist.txt # recursive
lpr filelist.txt # print (CUPS)When a Printed List Isn't Enough
Most people print a folder list to check something: that every invoice is there, that a hand-off to a client is complete, or that a copy to a new drive didn't miss anything. A list of names can't tell you whether a file with the right name is the right file. Two files can share a name and size and still differ inside, and a copy can be cut short or corrupted without the name changing.
That is what a folder manifest is for. FolderManifest scans a folder on Windows 10/11, macOS, or Linux and records every file with its path, size, dates, and a SHA-256 hash, then exports the list as HTML, CSV, or Markdown you can print or share. Later you can verify another copy, or the same folder a month on, against that manifest and see exactly which files were added, removed, or changed.
You may not need it
If you just want names on paper, the free methods above are all you need. A manifest is worth it when you have to prove a set of files is complete and unchanged.
Comparing two folders right now? Follow our guide to comparing two folders on Windows, or read more about what goes into a folder manifest.
Frequently Asked Questions
How do I print a list of files in a folder in Windows 11?
Open the folder, click the address bar, type cmd and press Enter. Run dir /b > filelist.txt to save the file names to a text file, then run notepad /p filelist.txt to send it to your default printer. The same steps work on Windows 10.
How do I copy all file names in a folder?
In File Explorer, press Ctrl+A to select everything, then press Ctrl+Shift+C (Windows 11) or Shift+right-click and choose Copy as path (Windows 10). Paste into Notepad or Excel. Each line is the full path in quotes; use Find and Replace to remove the quotes or the folder part. To copy names only, run dir /b | clip in Command Prompt.
How do I get a list of files in a folder into Excel?
In Excel for Windows, go to Data > Get Data > From File > From Folder, pick the folder, and choose Transform Data. Power Query lists every file with its name, extension, dates, and folder path, including subfolders. Remove the Content column and click Close & Load. PowerShell with Export-Csv is the other easy route.
How do I include subfolders in the list?
Add /s to the dir command (dir /b /s > filelist.txt) on Windows, add -Recurse to Get-ChildItem in PowerShell, or use find . -type f > filelist.txt in Terminal on Mac or Linux. Each line then shows the full path, so you can tell which subfolder a file is in.
How do I print a list of files in a folder on a Mac?
Open the folder in Finder, press Command+A then Command+C, open TextEdit, choose Format > Make Plain Text, and press Command+V. The file names paste as a list you can print with Command+P. In Terminal, ls -1 > ~/Desktop/filelist.txt saves the list and lpr ~/Desktop/filelist.txt prints it.
Can I print file sizes and dates as well as names?
Yes. Plain dir (without /b) shows dates and sizes. In PowerShell, select Name, Length, and LastWriteTime and export to CSV. On Mac or Linux, ls -l shows size and modified date. If you need a checksum for every file too, a manifest tool such as FolderManifest adds a SHA-256 hash to each row.
Turn a File List Into Proof
Export every file with its SHA-256 hash, then check any later copy against it. Windows, Mac, and Linux. 7-day free trial, no card required, 30-day money-back guarantee.
