If you want to get a list of files in the folder to insert into an excel file, or export as text, .doc, you can use the following simple ways.
Instructions for listing files into Excel files
List files using a Web browser
This way is quite simple, all you need to do is have any Web browser (Chrome, Firefox, Edge, Opera...).
First, open the folder containing the files you need to get the list, then copy its path in the address bar (double-click this bar to display the standard path).
Open any browser, then paste the link above into the address bar and press Enter. At this point, all files and folders will be listed in the browser
Your work now just press Ctrl + A to copy and then paste it into the Excel spreadsheet.
List files using Command Prompt (CMD)
In addition to using the browser, we also have another very simple way that is to use the command prompt.
First, you open CMD by pressing Start -> type in CMD -> select CMD or go to Run -> type CMD -> Enter. After opening the CMD window, go to the drive containing the folder to be listed by typing " drive name:" -> Enter (Example D: ). Enter the command cd directory path (Example: cd D:\Music ) to go to that directory.
Next, we just need to enter the command dir /ad /b >name of the file we want to export.xls (Example:
dir /ad /b >danhsachteptin.xls ) to create a list of files in the form of an Excel spreadsheet. You can also output any text like Word (.doc) or Notepad (.txt) in this way.
That's it, go to the folder where you need to list the file list and you will see the exported file.
Wishing you success!