Whilst trying to list out my files in my movie drive

https://www.minitool.com/news/how-to-open-drive-in-cmd.html

To open D:/>, type command

D:

https://www.get-itsolutions.com/how-to-list-files-in-cmd-command-prompt-windows-10/#:~:text=How%20to%20create%20a%20text%20file%20listing%20of,as%20the%20main%20folder%2C%20enter%20the%20following%20command

To list folders, open directory in command line and type

dir > listoffiles.txt

or for subfolders included

dir /s >listoffiles.txt

or give full path name

dir >D:\listmyfiles.txt

or give list of only a certain file type, like PDFs

dir /s *.pdf >listpdf.txt