🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

How to Get a List of Resources in a Folder on Windows System

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.

Snipaste 2025 02 18 09 05 28

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.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

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.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: