Example: I wanted a list of all mp4 files inside a specific directory.
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.
- 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
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: