Sometimes when sharing things with others, you need to provide a list of resources inside a folder. While screenshots can work, they become cumbersome if there are many subdirectories. Therefore, you can use the following .bat file to list all resources in the current directory, including those in subdirectories, into a .txt document.
Create a new .txt document, name it whatever you like, then copy and paste the following code snippet.
@echo off dir /s/b *.* > list.txt exit
After saving, change the extension of the new .txt document to .bat, then copy the .bat file to the folder where you want to count the file list and run it. The results will be output to a list.txt text document.

This method is particularly suitable for situations where the folder structure is complex and contains many files. For example, if you have a movie folder with subdirectories organized by year and genre, running this .bat file will list all the movie paths, making it easy to share with others.

Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.