WIndows 10 cmd path question

ssal

Active Member
I have my original video footage stored in the following structure:

E:\Alex\YouTube\1904\Grand Central\Video\*.mp4
E:\Alex\YouTube\1904\Cherry Blossom 2019\Video\*.mp4
E:\Alex\YouTube\1906\Zoo June2019\Video\*.mp4
E:\Alex\YouTube\1912\Toronto Trip Dec2019\Video\*.mp4

I want to issue a command in the cmd prompt to display all the mp4 files store in the above. What is the DIR path command line that I can type in the root directory to achieve this?
 

beers

Moderator
Staff member
I usually do it like this, you can also just use a wildcard for the name if you don't enjoy piping to findstr like dir /s /b *.txt
D:\Alex>dir /s /b | findstr .txt
D:\Alex\YouTube\1904\Cherry Buttocks 2019\Old Text Document.txt
D:\Alex\YouTube\1904\Grand Canyon\Can Grandyon.txt
D:\Alex\YouTube\1906\ZooHub June2019\New Text Document.txt
D:\Alex\YouTube\1912\Tore on hoe Drip Dec2019\New Text Document.txt
 

ssal

Active Member
I usually do it like this, you can also just use a wildcard for the name if you don't enjoy piping to findstr like dir /s /b *.txt
I did something similar.
I exported the directory using dir *.* /s/p>dir.txt to a text file. Then imported it to Excel to perform query so to come up with a list of the specific directories. Then I wrote a batch file and run it to achieve what I wanted to achieve.
Thanks.
 
Top