If you want to create multiple folders quickly in Windows, doing it manually can take a lot of time. But using a simple batch script (.bat file), you can create hundreds or even thousands of folders in just one click.
This guide will show you how to create 1000 folders instantly using a simple trick.
📌 What is a Batch Script?
A batch script is a simple text file with .bat extension that runs commands automatically in Windows Command Prompt.
It helps you:
Automate tasks
Save time
Execute multiple commands at once
💻 Batch Script to Create 1000 Folders
Copy the code below:
@echo off
for /l %%i in (1,1,1000) do (
mkdir Folder%%i
)
echo 1000 folders created successfully!
pause
📥 How to Create the Script File
Open Notepad
Paste the above code
Click File → Save As
Change file name to:
create-folders.bat
Set Save as type: All Files
Click Save
▶️ How to Run the Script
Open the folder where you saved the file
Double-click
create-folders.batWait a few seconds
👉 1000 folders will be created automatically.
⚙️ Customize Number of Folders
You can change the number easily:
for /l %%i in (1,1,500) do (
mkdir Folder%%i
)
👉 Replace 1000 with any number (like 100, 500, 2000)
📂 Folder Naming Options
You can also customize folder names:
mkdir Project%%i
Output:
Project1
Project2
Project3
🚀 Benefits of This Trick
Saves time
No software needed
Works offline
Easy for beginners
Fully customizable
⚠️ Important Tips
Run script in empty folder
Avoid creating too many folders on desktop
Use proper naming for organization
Do not run multiple times accidentally
📝 Final Words
Creating multiple folders in Windows is extremely easy using a batch script. With just one click, you can generate 1000 folders and save a lot of time.
This trick is very useful for students, developers, and file management tasks.
For more coding tricks and tools, visit CodeSardar.
❓ Frequently Asked Questions
Q1. Can I create more than 1000 folders?
Yes, you can increase the number in the script.
Q2. Is batch script safe?
Yes, if you use simple commands like this.
Q3. Can I delete all folders easily?
Yes, select all folders and press Delete.
