English
0

How to create multiple folders at once in Windows 10?

چگونه چند فولدر به صورت همزمان در ویندوز ۱۰ ایجاد کنیم؟

Creating a large number of new folders normally in Windows can be very time consuming and erosive. But if you want to create multiple folders at once, you can use tools like Command Prompt or PowerShell. Using such tools helps the user no longer need to manually create new folders. But how to use them properly? ‌ In the following, we will provide explanations about how they work and how to work with them.

Create multiple folders with Command Prompt

There are several ways to access the tool Command Prompt There is in Windows. You can type cmd in the Start search bar and then select cmd from the results as shown below.

With the help of the cd command in Command Prompt you can change your current directory and go to other paths. Just type cd and then enter the directory you want, as shown below.

1621266625 601 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 2

To get started, we want to create seven folders for each day of the week. To do this, type the following command in the desired directory:

md sunday monday tuesday wednesday thursday friday saturday

1621266625 388 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 4

You can replace the names of the folders after the md command with your own. When done, exit Command Prompt and then go to the path you have chosen to create the folders. You will now see new folders created in groups.

1621266625 787 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 6

Create multiple folders using PowerShell

Another tool that allows you to create multiple folders at the same time is called PowerShell. First click on Windows Start and then search for PowerShell. Right-click on the first search result and select Run as administrator.

1621266626 13 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 8

The PowerShell window opens by default in C: Users User. Here you can also go to your favorite directory using the cd command. For example, you can move to the Documents folder by typing the following command:

cd Documents

1621266626 294 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 10

To create several folders in PowerShell, we will first need to consider the names for all of them. As in the previous example, if we want to create a folder for each day of the week, we use the following command:

"sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"  | %{New-Item -Name "$_" -ItemType "Directory"}

1621266626 70 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 12

As it turns out, folder names must be enclosed in quotation marks and separated by commas. After executing the command, you can exit PowerShell and go to the selected directory to see the new folders.

1621266627 911 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 14

Create multiple folders with Batch Script

Using the Command Prompt tool can not be very helpful when you want to create multiple folders and subfolders at the same time. In such cases, the Batch Script tool can be very helpful. For example, you want to create several weeks for April and specify its days each week. To do this, use the following command in Notepad:

1621266627 844 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 16

If your folder name consists of two characters or has special characters, you must put it between the two quotation marks. Repeat the same process for subfolders. After typing the above command, enter the phrase echo off @ and then press Enter to create a space. Finally, if the address of each folder is in a new line, type md at the beginning of each. If the folder structure is defined sequentially and with an interval, use md only once.

1621266627 710 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 18

Now save the text file with the desired name and then change its extension from txt to bat.

1621266627 434 How to create multiple folders at once in Windows 10 How to create multiple folders at once in Windows 10? 20

Finally, you can use your batch file anywhere to create multiple folders with a defined structure; Just double-click on it to run. Such a tool has many users for creating folders with duplicate templates in different sections.

More Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Most Viewed Posts
Menu