There might be a requirement to list all the filenames inside a folder. The steps below would be useful:

1. Hold the “Shift” key, right-click the folder containing a list of files and select “Open Command Window Here.”

2. Type dir > files.txt in the Command Prompt window. Press “Enter.”

3. A text file name files.txt is created in the folder selected.