Dir command
If you want a simple list of files in a directory enter this code:
dir /s /w >files.txt
. .. . in a batch file (a regular text file, but switch then the extension to bat and then click it.) The /w option sets the results to the wide format. The file names are listed after each folder.
![](https://static.wixstatic.com/media/af7fa4_5d83b30726004513b32cabb78541ddec~mv2.png/v1/fill/w_853,h_472,al_c,q_90,enc_auto/af7fa4_5d83b30726004513b32cabb78541ddec~mv2.png)