Published on

How to Create Multiple Folders at Once in Windows 10

Published on

How to Create Multiple Folders at Once in Windows 10

Creating folders and subfolders manually is time consuming tasks and a boring thing to do. But how about creating multiple folders at once in Windows 10, sounds good right!

Let’s see how quickly we can create multiple folders at once in Windows 10 using three different ways,

  1. Command Prompt
  2. PowerShell
  3. Batch File

The above methods will save more time and help you to automate some of your manual tasks wherever required.

Create Multiple Folders using Command Prompt

Step 1: Type cmd in Windows search bar and run the Command Prompt with or without Admin privileges.

run cmd as admin

Step 2: Change the directory where you want to create the folders using cd command.

change directory

Step 3: Now let’s create a 12 folders for each month in a year. That is from January to December. Run the below command on command prompt.

md January February March April May June July August September October November December
make directory command

Make sure to replace the names after md command with your folder names.

Now open the directory and verify that all the folders created as shown below,

create multiple folders at once

That’s simple! Give a try.

Create Multiple Folders using PowerShell

The second method to create multiple folders at once is using the PowerShell. Let’s create seven folders for each day in a week.

Step 1: Type PowerShell in Windows search bar and open the PowerShell.

opening powershell

Step 2: Navigate to the directory where you want to create the folders using cd command as shown below,

cd C:\Users\NaGG\Demo

Step 3: Inside the directory, run the below command.

"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"  | %{New-Item -Name "$_" -ItemType "Directory"}
creating folders using powershell

Now open the directory and verify that all the folders created as shown below,

powershell script output

Create Folders and Subfolders using Batch Script

Using command prompt is cumbersome when you want to create folders and the subfolders. You could mess up the entire folder structure with one small mistake.

Here is small example of command to create folders and subfolders using command prompt.

md folder1\subfolder1 folder2\subfolder2

The above command looks cool and simple but what if you want to create 100s of folders? sure, you will mess up with the structure.

To avoid these kind of errors, you can simply save your folder structure as bat file and run it.

Step 1: Open notepad and type your folder structure as shown below and save the file as .bat.

@ECHO OFF
 md folder1\subfolder1 folder2\subfolder2 folder3\subfolder3 
 md folder4\subfolder4 folder5\subfolder5 folder6\subfolder6

Make sure to give space between the folders and you must add md before a newline.

folder-structure

Step 2: Now simply click on the file and verify folder structure.

windows-bat-file

That’s simple.

We hope this tutorial helped you to create multiple folder at once in Windows 10 using different methods.

If you know any other methods to create multiple folders then please do let us know in the comment section.

Please do share it with your friends and don’t forget to follow us on FacebookTwitter and LinkedIn. Visit our Windows Hub for more tutorials, tips and tricks.

Creating folders and subfolders manually is time consuming tasks and a boring thing to do. But how about creating multiple folders at once in Windows 10, sounds good right!

Let’s see how quickly we can create multiple folders at once in Windows 10 using three different ways,

  1. Command Prompt
  2. PowerShell
  3. Batch File

The above methods will save more time and help you to automate some of your manual tasks wherever required.

Create Multiple Folders using Command Prompt

Step 1: Type cmd in Windows search bar and run the Command Prompt with or without Admin privileges.

run cmd as admin

Step 2: Change the directory where you want to create the folders using cd command.

change directory

Step 3: Now let’s create a 12 folders for each month in a year. That is from January to December. Run the below command on command prompt.

md January February March April May June July August September October November December
make directory command

Make sure to replace the names after md command with your folder names.

Now open the directory and verify that all the folders created as shown below,

create multiple folders at once

That’s simple! Give a try.

Create Multiple Folders using PowerShell

The second method to create multiple folders at once is using the PowerShell. Let’s create seven folders for each day in a week.

Step 1: Type PowerShell in Windows search bar and open the PowerShell.

opening powershell

Step 2: Navigate to the directory where you want to create the folders using cd command as shown below,

cd C:\Users\NaGG\Demo

Step 3: Inside the directory, run the below command.

"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"  | %{New-Item -Name "$_" -ItemType "Directory"}
creating folders using powershell

Now open the directory and verify that all the folders created as shown below,

powershell script output

Create Folders and Subfolders using Batch Script

Using command prompt is cumbersome when you want to create folders and the subfolders. You could mess up the entire folder structure with one small mistake.

Here is small example of command to create folders and subfolders using command prompt.

md folder1\subfolder1 folder2\subfolder2

The above command looks cool and simple but what if you want to create 100s of folders? sure, you will mess up with the structure.

To avoid these kind of errors, you can simply save your folder structure as bat file and run it.

Step 1: Open notepad and type your folder structure as shown below and save the file as .bat.

@ECHO OFF
 md folder1\subfolder1 folder2\subfolder2 folder3\subfolder3 
 md folder4\subfolder4 folder5\subfolder5 folder6\subfolder6

Make sure to give space between the folders and you must add md before a newline.

folder-structure

Step 2: Now simply click on the file and verify folder structure.

windows-bat-file

That’s simple.

We hope this tutorial helped you to create multiple folder at once in Windows 10 using different methods.

If you know any other methods to create multiple folders then please do let us know in the comment section.

Please do share it with your friends and don’t forget to follow us on FacebookTwitter and LinkedIn. Visit our Windows Hub for more tutorials, tips and tricks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Articles

How to Integrate Solace with MuleSoft using JMS API

In this tutorial, we will demonstrate step by step...

How to Open Port on AWS EC2 Instance

In this tutorial, we will demonstrate step by step...

AWS Tutorial for Beginners to Experts [Step By Step Guides]

Welcome to AWS tutorial for beginners to experts series....

LEAVE A REPLY

Please enter your comment!
Please enter your name here