How to easily create a list of files inside a directory on Windows

Mave

TMS Founder
Administrator
Messages
234,196
Location
Belgium
Example: I wanted a list of all mp4 files inside a specific directory.
  • Inside the directory press ALT+D to enter the address bar
  • Then type cmd.exe
  • Inside the command window type: dir /b a-d *.mp4 >files.txt
/b will list only the filenames instead of the paths and other info. (I prefer this for a cleaner list)
The a-d makes the files order alphabetically.
The .mp4 can be disregarded if you want to list all files or be replaced by a filetype of your choosing. (keep the *)
The filename can be whatever you want.

This takes almost no time and is a really convenient way for me to list out files.
 
Last edited:
Another bit of advice: activate the linux commandline in windows. It's heaps more powerful than the standard Windows commandline, and works flawlessly!

Also, you can find a lot more help for this than for the basic cmd.
 
Another bit of advice: activate the linux commandline in windows. It's heaps more powerful than the standard Windows commandline, and works flawlessly!

Also, you can find a lot more help for this than for the basic cmd.
I assume you download this “upgrade” through the Windows store?
 
Back
Top Bottom