🧰 KPT-0001 | Create Folders Automatically with a Simple Batch Script

πŸ”’ Post ID: KPT-0001

Need to create a structured set of folders in Windows without any special software? Here's a lightweight .bat script that reads a text file and builds your folder tree instantly.


🎯 What This Script Does

  • Reads folder names from a folders.txt file
  • Creates folders and subfolders wherever you run the script
  • Requires no installation β€” works on all modern Windows PCs

πŸ–±οΈ Just double-click the .bat file

πŸŽ‰ Boom! Your folders appear like magic, already named just the way you want

πŸ—ƒοΈ It's automation, the old-school way β€” fast, clean, and offline


πŸ“ Example Input File (folders.txt)

I have planned my folder structure as below β€” a simple model of my native state India > Assam > Districts. Basically I want to create a folder "India" under which my State "Assam" and finally all my district-wise folders under the state "Assam":

India
└── Assam
    β”œβ”€β”€ Baksa
    β”œβ”€β”€ Barpeta
    β”œβ”€β”€ Biswanath
    β”œβ”€β”€ Bongaigaon
    β”œβ”€β”€ Cachar
    β”œβ”€β”€ Charaideo
    β”œβ”€β”€ Chirang
    β”œβ”€β”€ Darrang
    β”œβ”€β”€ Dhemaji
    β”œβ”€β”€ Dhubri
    β”œβ”€β”€ Dibrugarh
    β”œβ”€β”€ Goalpara
    β”œβ”€β”€ Golaghat
    β”œβ”€β”€ Hailakandi
    β”œβ”€β”€ Hojai
    β”œβ”€β”€ Jorhat
    β”œβ”€β”€ Kamrup
    β”œβ”€β”€ Kamrup Metropolitan
    β”œβ”€β”€ Karbi Anglong
    β”œβ”€β”€ Karimganj
    β”œβ”€β”€ Kokrajhar
    β”œβ”€β”€ Lakhimpur
    β”œβ”€β”€ Majuli
    β”œβ”€β”€ Morigaon
    β”œβ”€β”€ Nagaon
    β”œβ”€β”€ Nalbari
    β”œβ”€β”€ Sivasagar
    β”œβ”€β”€ Sonitpur
    β”œβ”€β”€ South Salmara-Mankachar
    β”œβ”€β”€ Tinsukia
    β”œβ”€β”€ Udalguri
    └── West Karbi Anglong

πŸ—‚οΈ The Final Output (Example File)

Districtwise Folder Structure


πŸ™Œ Wrapping Up

This simple batch script saves time, removes repetition, and gives you full control over folder structures β€” no software or manual creation of folders and then renaming each and every folder required.

πŸ’‘ Whether you're organizing projects, journals, or research β€” this is just the beginning of more powerful Windows tricks I’ll be sharing.

πŸ’‘ Want to do the same with Excel instead of a text file?

πŸ‘‰ Check out my next blog – KPT-0002 (Link to be added once published)


πŸ“₯ Get the Files

πŸ“ Download Folder Script (.ZIP)


πŸ“š Explore more tools:

━━━━━━━━━━ 𖀓 THE KRITTIKA PROJECT 𖀓 ━━━━━━━━━━

✍️ Written by Amaljit Bharali | β˜„οΈ Krittika Guides Me | The Rover Builds | 2025