Tuesday, February 18, 2025

Get a list of filenames in a folder, in text format

Windows (Command Prompt)

  1. Open Command Prompt (Win + R, type cmd, press Enter).
  2. Navigate to the folder:
    cd "C:\path\to\your\folder"
  3. Run this command to output filenames to a text file:
    dir /b > filelist.txt
    This will save the filenames (without details) into filelist.txt in the same folder.