source: https://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-do-i-copy-all-file-names-in-a-folder-to/5a4b8da9-123a-4c98-b4aa-1260b38409a2?auth=1
For example if you wanted to get an output of the following folder, C:\Users\{username}\Pictures\Summer Vacation
Navigate to that folder in Windows Explorer. Hold down the shift key and RIGHT click on Summer Vacation folder. You will see a new option called ‘Open command window here’. This way, you don’t have to type the full path in your dir command.
dir *.* > dir.txt /b /o