How to Create Multiple Folders At Once with Different Names?

User Author

Achilles.H

May 11, 2022

how to create multiple folders at once with different names

In the daily office process, if we create new folders one by one, and then rename them, this is more trouble and a waste of time, if we create multiple folders at once, we will improve efficiency and save time. Here are three ways to create multiple folders at once with different names.

Way 1: Via changing the .txt file suffix to .bat

Step 1: Create a new text file. For example, if we want to create a new folder named Monday to Sunday, we can type md Monday- md Sunday in the text document.

text document

Step 2: Save the document, change the suffix name ".txt" to ".bat", and then click "Yes" to continue.

rename txt to bat

Step 3: Double click on the file and all the folders we need are created.

double click

We can also quickly create multiple folders through word documents.

Step 1: Create a new word document and open it, and enter the name of the folder we want to create in Word.

word md

Step 2: Press the "Ctrl + H" key, open the "Find and Replace" dialog box, in the "Find Content" text box, enter "^p", "Replace with" enter "^pmd" (Note: ^pmd must be followed by a space). And then click "Replace All".

find and replace

Step 3: Click "File" "Save As" "Browse" to open the "Save As" dialog box, where we can set the save type to "Plain Text" file.

plain text

Step 4: Change the suffix name ".txt" to ".bat", click "Yes", then double click on the file and all the folders we need are created.

change suffix

We can also quickly generate file names from excel files.

It is more troublesome to add line by line manually, if it is a more regular file name, such as month, date, and year, it is more convenient to use Excel. We can follow the steps to achieve this goal.

Step 1: Create a new Excel file and open it.

Step 2: Take the month as an example, in the Excel Sheet, enter md in line A, enter January in line B, and use the solid cross arrow to drag down, we can quickly create the "md month" line.

excel month

Step 3: Copy and paste these two lines into a text document.

Step 4: Change the suffix name ".txt" to ".bat", click "Yes", then double click on the file and all the folders we need are created.

new month file

Way 2: Via command prompt

Step 1: Use win+R to open the Run dialog box, type cmd, and click ok to open it.

open cmd

Step 2: Use the cd command to switch to a directory. For example, type cd C:\New folder, and then press enter.

cd C:\New folder

Suppose we want to create three folders - 2021, 2022, and 2023. We need to execute the following command. ( Note: There is a space between each folder name.)

md 2021 2022 2023
cd command

Step 3: After executing the command, close the command prompt and go to the directory where we created the folder. We will find our folder there.

cmd new folder

Way 3: Via Powershell

Step 1: Click the Start button and search for "Powershell". Then, open Powershell.

open powershell

Step 2: If we want to create a new folder in the "Documents" directory. We can do this with the cd command. So, we will type the following command.

cd Documents
cd documents

Step 3: Batch folder creation requires writing the file name and then running a specific command in a PowerShell window. Suppose we want to create folders for four seasons of the year. We can use the following command.

"Spring", "Summer", "Autumn", "Winter"  | %{New-Item -Name "$_" -ItemType "Directory"}
power shell four seasons

Step 4: After running this command, we can close PowerShell and open Windows Explorer to find "Documents"

find the new folder

We only need to choose one or two of these methods to create multiple folders with different names.