Easily Get a List of Files in Any Folder (for Mods, Troubleshooting, or AI Tools)

This quick guide shows you how to get a plain-text list of files in a folder using Command Prompt or PowerShell on Windows. This is especially useful if:

  1. You need a quick inventory of files without third-party tools.
  2. You want to get a list of your installed mods.
  3. You’re sending file info to an AI tool or support for troubleshooting.

Option 1: Command Prompt (CMD)

  1. Open Command Prompt by pressing Windows + R, type cmd, press Enter.
    • you can also open it by right clicking the windows icon and selecting it from the context menu
  2. Tell command prompt to target the folder by typing cd “C:The/Path/ToYour/Folder“. Then hit enter to run the command
  3. Run this command to list files only: dir /b /a-d ✅ This shows only file names, no directories.
  4. To list files from any folder without changing directory: dir /b /a-d "C:\path\to\your\folder"
  5. You’ll see a list of file names printed in the terminal.

Option 2: PowerShell

  1. Open PowerShell by pressing Windows + R, typing powershell and pressing Enter.
    • You can also right click the windows icon and launch powershell from the context menu
  2. Tell PowerShell to target the folder by typing cd “C:The/Path/ToYour/Folder“. The hit enter to run the command
  3. Next run the command Get-ChildItem -File
  4. The powershell window should display a list of your files and their details that you can copy and paste

To list file names only:

Get-ChildItem -File | Select-Object -ExpandProperty Name

To get full paths:

Get-ChildItem -File | Select-Object -ExpandProperty FullName

You can even save the list to a text file:

  • Command prompt: dir /b /a-d > filelist.txt
  • PowerShell: Get-ChildItem -File | Select-Object -ExpandProperty Name | Out-File filelist.txt

Contact me at [email protected] or leave a comment.

Leave a Reply

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