how to create multiple folders at once

how to create multiple folders at once

4 hours ago 3
Nature

To create multiple folders at once, you can use built-in tools like Command Prompt, PowerShell, or batch scripts on Windows. Here are the main methods:

Using Command Prompt

  1. Open Command Prompt as administrator.

  2. Navigate to the desired directory with the cd command, for example:

    cd C:\Users\YourName\Desktop
    
  3. Use the md (make directory) command followed by the folder names separated by spaces:

    md Folder1 Folder2 Folder3
    

This will create multiple folders at once in the current directory

Using PowerShell

  1. Open PowerShell as administrator.

  2. Navigate to the target directory using cd.

  3. Use the following command to create multiple folders:

    "Folder1","Folder2","Folder3" | %{New-Item -Name $_ -ItemType Directory}
    

This command creates each folder listed in the array

Using a Batch File

  1. Open Notepad.

  2. Type commands like:

    @echo off
    md Folder1
    md Folder2
    md Folder3
    
  3. Save the file with a .bat extension, e.g., createfolders.bat.

  4. Run the batch file by double-clicking it to create the folders automatically

Additional Tips

  • You can create folders with spaces by enclosing names in quotes, e.g., md "Blue Sky" "Purple Moon"
  • For large numbers of folders, you can prepare a list of folder names in a text file and use scripting or copy-paste into the command line after md
  • These methods work on Windows 10 and 11 and can save time compared to creating folders manually via File Explorer

This approach avoids third-party tools and leverages built-in Windows commands to efficiently create multiple folders at once.

Read Entire Article