Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Print List of Files in Folder Windows 10: 10 Ways

· 7 min read · Home Tech

In this article
  1. 1. Command Prompt: dir /b > filelist.txt
  2. 2. PowerShell: Get-ChildItem | Out-File
  3. 3. Print a Directory Listing from File Explorer
  4. 4. Use the "Send to" Menu with a Custom Script
  5. 5. Export to Excel via CSV for Sorting and Filtering
  6. 6. Use the Tree Command for a Visual Hierarchy
  7. 7. Print File List from Notepad (After Copy-Paste)
  8. 8. Use a Batch File for One-Click Generation
  9. 9. Print from Windows PowerShell ISE
  10. 10. Use a Third-Party Utility (Karen's Directory Printer)
  11. How to Choose
  12. Frequently Asked Questions
  13. Final Thoughts

Need a plain-text or printed inventory of the files inside a Windows 10 folder? Whether you're cataloging a media library, documenting a project folder for work, or just want a quick reference you can stick on the wall, Windows 10 offers several built-in methods—no extra software required. This guide covers 10 practical ways to generate and print a file list, from the classic Command Prompt trick to PowerShell scripts and even a no-code Excel export. Each method is explained with exact commands and steps, so you can pick the one that fits your comfort level and the kind of output you need.

1. Command Prompt: dir /b > filelist.txt

The quickest way to get a bare list of file names is the dir command. Open Command Prompt, navigate to your folder with cd /d "C:\Your\Folder", then type dir /b > filelist.txt. This creates a text file containing only the names of files and subfolders, one per line—perfect for a simple inventory.

To include file sizes and dates, use dir > filelist.txt without the /b flag. The output will be a standard directory listing that you can open in Notepad and print directly. For a recursive list that includes all subfolders, add /s to the command.

2. PowerShell: Get-ChildItem | Out-File

PowerShell gives you far more control over the output format. Open PowerShell, navigate to your folder, and run Get-ChildItem | Out-File -FilePath filelist.txt. This exports a list of files and folders with properties like size and last modified date.

To get only file names (no folders), use Get-ChildItem -File | Select-Object -ExpandProperty Name | Out-File filelist.txt. You can also pipe to Export-Csv to create a spreadsheet-ready file: Get-ChildItem | Export-Csv -Path filelist.csv -NoTypeInformation.

3. Print a Directory Listing from File Explorer

If you don't want to type any commands, you can print a directory listing directly from File Explorer—sort of. Select all files (Ctrl+A), then right-click and choose Print. This works for image files, printing thumbnails, but not for documents or mixed files.

For a true text list, you'll need to copy the file names manually or use a third-party tool. However, a clever workaround is to use the Address Bar: type cmd in the address bar of the folder and press Enter—this opens a Command Prompt already set to that folder, so you can immediately run the dir command from step 1.

4. Use the "Send to" Menu with a Custom Script

Create a batch file that generates a file list and place it in the SendTo folder. Right-click any folder, choose Send to, and your script will run on that folder. Here's a simple script: @echo off & dir /b "%1" > "%~1\filelist.txt" & notepad "%~1\filelist.txt".

To set this up, create a new text file, paste the script, save it as ListFiles.bat, and move it to %AppData%\Microsoft\Windows\SendTo. This gives you a right-click option to generate a file list instantly without typing commands.

5. Export to Excel via CSV for Sorting and Filtering

PowerShell can export a detailed file list to CSV, which you can then open in Excel, sort, filter, and print professionally. Run Get-ChildItem -Recurse | Select-Object FullName, Length, LastWriteTime | Export-Csv -Path list.csv.

This is ideal for large folders where you want to analyze file sizes or dates. Once in Excel, you can apply filters, add columns, and format the print area before printing. The CSV file itself can also be printed directly from Notepad or Excel.

6. Use the Tree Command for a Visual Hierarchy

The tree command prints a graphical tree of the folder structure, showing all subfolders and files. In Command Prompt, type tree /f > tree.txt to include files, or tree for folders only. The output is a visual indented list that's great for understanding folder organization.

Print the resulting text file directly. Note that the tree command may produce a very long output for large directories, so consider limiting it with tree /f /a to use ASCII characters that print more reliably.

7. Print File List from Notepad (After Copy-Paste)

If you only need a short list, you can manually select file names in File Explorer, copy them (Ctrl+C), and paste into Notepad. This works because Windows copies the file names as text when you copy multiple files. However, this method only copies names, not sizes or dates.

This is fine for a quick reference, but for anything more than a dozen files, the command-line methods are faster and more reliable. You can also paste into Excel for better formatting.

8. Use a Batch File for One-Click Generation

Create a reusable batch file that you can double-click to generate a file list for any folder. Save the following as ListFiles.bat: @echo off & dir /b /s > "%~dp0filelist.txt" & echo Done & pause. Place it in the folder you want to list, then double-click it.

This is handy if you frequently need to generate lists for different folders. You can also modify the script to include dates and sizes by removing the /b flag.

9. Print from Windows PowerShell ISE

If you prefer a graphical interface, open Windows PowerShell ISE (Integrated Scripting Environment) from the Start menu. You can write a script, run it, and see the output in the console pane. Then simply copy the output and paste into Notepad for printing.

This is more comfortable for users who want to experiment with different formatting options without editing batch files. For example, you can add | Format-Table -AutoSize to your command to make the output more readable.

10. Use a Third-Party Utility (Karen's Directory Printer)

If you need advanced features like recursive listing, file filters, and export to HTML or Excel, a free tool like Karen's Directory Printer (still available from major download sites) is a solid choice. It adds a right-click context menu option to print a directory listing directly.

While not built-in, this utility is lightweight and has been around for years. It's especially useful for users who aren't comfortable with command-line tools but need a professional-looking report with columns for name, size, date, and attributes.

How to Choose

The right method depends on your technical comfort and the output you need. For a quick, plain list of names, the Command Prompt dir /b is unbeatable. If you need sizes and dates, use dir without /b or PowerShell's Get-ChildItem. For a sortable spreadsheet, export to CSV and open in Excel. If you want a visual tree, use tree /f. And if you're not comfortable with typing commands, a batch file or third-party tool like Karen's Directory Printer provides a one-click solution. Always test the output in a small folder first to ensure it matches your expectations.

Frequently Asked Questions

Q: Can I print a file list without any commands?
Yes, you can copy file names from File Explorer and paste into Notepad, but it's limited to names only. For a full list, you'll need a command-line method or a third-party tool.

Q: How do I include file sizes and dates in the list?
Use dir without /b in Command Prompt, or PowerShell's Get-ChildItem | Select-Object Name, Length, LastWriteTime. Export to CSV for a table format.

Q: Can I list files in subfolders too?
Yes, add /s to the dir command, or use -Recurse in PowerShell. For the tree command, /f includes files in subfolders.

Q: How do I print the list directly to a printer?
Generate the list to a text file, then open it in Notepad and press Ctrl+P. Or, in PowerShell, use Get-ChildItem | Out-Printer to send directly to the default printer.

Q: The list is too long and prints multiple pages. Can I make it fit?
In Notepad, go to Page Setup and reduce margins or change orientation to landscape. For Excel, adjust column widths and use print scaling.

Q: Why does my dir command show more than just files?
By default, dir includes folders. Use dir /b /a-d to list only files (excluding directories).

Final Thoughts

Printing a file list in Windows 10 doesn't require special software—the built-in Command Prompt and PowerShell tools are powerful enough for most needs. Start with the simple dir /b command, and as you get comfortable, explore PowerShell for more detailed and formatted outputs. If you're a visual person, the tree command gives you a nice overview. For recurring tasks, create a batch file or use a third-party utility to save time. Whichever method you choose, you'll have a clean, printable record of your files in minutes.