list all file names in a folder windows

List Folder Files: How to Win10

By Robert Harris
AD

Picture this: you're working on your Windows machine, and you need to extract a list of all file names housed within a particular folder. This task might seem daunting, but Windows actually provides a straightforward method to accomplish this. Let's explore how you can swiftly obtain this list and streamline your file management process.

Before we delve into the step-by-step guide, let's clarify that this method works for most common file types, like documents, images, videos, and more. Now, let's dive into listing all file names in a folder on your Windows device.

Using Command Prompt

One of the most efficient ways to list all file names in a folder on Windows is by utilizing the Command Prompt (formerly known as the command line). This tool, while intimidating to some, is remarkably powerful and can significantly speed up your workflow once mastered.

AD
How To Organize Computer Files On Your Home Computer
How To Organize Computer Files On Your Home Computer
Export list of file names from Windows Explorer folder tree to Microsoft Excel
Export list of file names from Windows Explorer folder tree to Microsoft Excel
Mark important folders to make them easier to find
Mark important folders to make them easier to find

First, let's ensure that your folder is set to show hidden items, as it's often the case that the Command Prompt can't list hidden files otherwise.

Enabling Hidden Items View

To enable view of hidden items, open your folder properties. Proceed by unchecking the 'Hidden' box under the 'Attributes' section. Click 'OK' to save your changes.

How to Get the List of File Names in a Folder in Excel (without VBA)
How to Get the List of File Names in a Folder in Excel (without VBA)
3 Ways To Easily Print Out The Contents Of A Directory Or Folder [Mac]
3 Ways To Easily Print Out The Contents Of A Directory Or Folder [Mac]
Mark important folders to make them easier to find
Mark important folders to make them easier to find

Now that your folder is set to display hidden items, you can proceed with listing your files using the Command Prompt.

Listing File Names via Command Prompt

Open the Command Prompt, then navigate to your desired folder using the 'cd' command. Suppose your folder path is, for instance, 'C:\Users\YourName\Documents'. Type in 'cd C:\Users\YourName\Documents' and press 'Enter'.

AD

Now, to list all file names, input the command 'dir /b' and press 'Enter'. The '/b' switch tells Command Prompt to display only the file names, not the full details. This gives you a clean list, perfect for printing or saving.

Best Folder Naming System for School Files | Stay Organized Like a Pro
Best Folder Naming System for School Files | Stay Organized Like a Pro
How to See Folder Sizes in Windows with RidNacs
How to See Folder Sizes in Windows with RidNacs
Best Windows 11 Folder Settings [Tips & Tricks]
Best Windows 11 Folder Settings [Tips & Tricks]
How to Organize Files & Folders: Best System for 2026
How to Organize Files & Folders: Best System for 2026
How to Load a Font | Naldz Graphics
How to Load a Font | Naldz Graphics
How to add a name to a Start menu folder on Windows 10 - Pureinfotech
How to add a name to a Start menu folder on Windows 10 - Pureinfotech

Using PowerShell

If you're more comfortable with a graphical interface or simply want more control over your file management, consider using PowerShell. This is a highly advanced tool native to Windows, capable of performing complex tasks with ease.

Similar to Command Prompt, the first thing you'll want to do is ensure your folder's properties allow for the view of hidden items. Follow the steps outlined previously to achieve this.

AD

Enabling Hidden Items View (PowerShell)

In PowerShell, you can toggle hidden file visibility directly from the interface. Type '[Ps custom object]@{Path=''YourFolderPath''; Hide=''HiddenFiles'} | Select-Object Path' into the console and press 'Enter'. Replace 'YourFolderPath' with your actual folder path. This will make PowerShell display both normal and hidden files.

A Guide to Windows 10 File Explorer
A Guide to Windows 10 File Explorer
a printable home buying checklist with the words, home buying and other items
a printable home buying checklist with the words, home buying and other items
How to Use Quick Access in Windows 10 - TheAppTimes
How to Use Quick Access in Windows 10 - TheAppTimes
File Explorer new features for Windows 11 22H2 - Pureinfotech
File Explorer new features for Windows 11 22H2 - Pureinfotech
How to show file extensions on Windows 11 - Pureinfotech
How to show file extensions on Windows 11 - Pureinfotech
MTE Locker: Password Protect Files/ Folders & Create Encrypted Archives
MTE Locker: Password Protect Files/ Folders & Create Encrypted Archives
How to Search for Folders Only by Name in Windows 11
How to Search for Folders Only by Name in Windows 11
Easily Change Folder Color In Bulk On Windows With Rainbow Folders
Easily Change Folder Color In Bulk On Windows With Rainbow Folders
Add Suffix/Prefix to All Files in a Folder in Windows 11/10
Add Suffix/Prefix to All Files in a Folder in Windows 11/10
Auto Organize & Sort Large Files Before Backup In Windows 7
Auto Organize & Sort Large Files Before Backup In Windows 7
Windows 11: All the new features added in 2025 – The ultimate recap
Windows 11: All the new features added in 2025 – The ultimate recap
How to Organize and Store Digital Files
How to Organize and Store Digital Files
Organize Your Windows 10 Start Menu Tiles With Folders
Organize Your Windows 10 Start Menu Tiles With Folders

Now, let's list your files.

Listing File Names via PowerShell

In the PowerShell console, navigate to your folder using the 'cd' command, just as in Command Prompt. Then, type 'Get-ChildItem -Name' and press 'Enter'. This will list all file names in your current directory.

AD

And there you have it! You've now mastered how to list all file names in a folder using both Command Prompt and PowerShell on your Windows machine. Happy file management!

AD