您(Are)想知道如何在Windows 10或 Windows 7 中创建多个文件夹吗?例如,如果你是一名教师,这将非常有用。假设一个班级有十几个学生,您需要在 Windows PC 上为每个学生创建一个文件夹。当然,您可以为每个学生手动创建一个文件夹,但这可能需要很长时间。幸运的是,有几种方法可以自动执行此操作,我们将在本教程中向您展示它们。因此,事不宜迟,让我们看看如何使用简单的命令和应用程序一次创建多个文件夹:
1.如何使用CMD(CMD)一次创建多个文件夹
(Command Prompt )无论您使用的是Windows 10 还是Windows 7,(Windows)命令提示符仍然是Windows中最强大的自动化工具之一。要一次创建多个文件夹,请先打开命令提示符(open Command Prompt)。一种快速的方法是使用任务栏上的搜索字段并在其中输入cmd。
在Windows 10中打开命令提示符(Command Prompt)
使用cd命令进入要在其中创建新文件夹的文件夹。例如,我们要在C:\Students文件夹中创建我们的文件夹,所以我们必须输入cd C:\Students。
使用 cd 命令切换到新文件夹
执行上述步骤的更快方法是打开文件资源管理器(File Explorer),导航到要在其中创建多个文件夹的文件夹,在文件资源管理器的地址栏中键入 cmd(type cmd in File Explorer’s address bar),然后按键盘上的Enter 。
使用文件资源管理器(File Explorer)在文件夹中打开 cmd
接下来是最关键的一步,即一次实际创建多个文件夹。为此,请在命令提示符(Command Prompt)中运行以下命令:md folder1 folder2 folder3。将文件夹 1、文件夹2、(folder1, folder2, folder3)文件夹 3 的名称更改为您要在计算机上创建的文件夹的名称。此外,您可以根据需要向命令添加任意数量的文件夹。
在我们的示例中,我们要创建几个以我们网站上的作者命名的文件夹:Ciprian、Codrut和Diana。要一次创建所有这些文件夹,我们必须运行:md Ciprian Diana Codrut。
使用 md 一次创建多个文件夹
命令提示符(Command Prompt)立即立即创建所有文件夹,如下面的屏幕截图所示。
同时创建多个文件夹
注意:(NOTE:)如果要创建名称包含空格的文件夹,例如My New Folder 1、My New Folder 2、My New Folder 3等,请确保将名称放在引号或撇号之间,例如:md“我的新文件夹 1” “我的新文件夹 2” “我的新文件夹 3”(md “My New Folder 1” “My New Folder 2” “My New Folder 3”)。而且,如果您想了解有关md的更多信息,请阅读有关CMD 有用命令的指南。(useful commands for CMD.)
2.如何使用PowerShell(PowerShell)一次创建多个文件夹
PowerShell提供了一种在(PowerShell)Windows中同时创建多个文件夹的类似方法。启动 PowerShell(Start PowerShell)(使用任务栏上的搜索字段查找powershell)并使用cd命令(cd command)进入要在其中创建新文件夹的文件夹。
我们将使用与前面方法相同的示例,因此我们必须运行的命令是cd C:\Students,以导航到我们要在其中创建多个子文件夹的文件夹。
使用PowerShell(PowerShell)切换到不同的文件夹
然后,运行以下命令:"folder1","folder2","folder3" | %{New-Item -Name "$_" -ItemType "Directory"}。键入您要创建的文件夹的名称,而不是folder1、folder2、folder3 。保留命令的其余部分,注意您可以指定任意数量的新文件夹,而不仅仅是三个。
举例来说,我们将一次创建三个文件夹,以我们在Digital Citizen的团队命名:Ciprian、Diana和Codrut。为此,我们必须运行以下命令:"Ciprian","Diana","Codrut" | %{New-Item -Name "$_" -ItemType "Directory"}。
一次创建多个文件夹
瞬间,Windows立即创建了这些多个文件夹。
提示:(TIP:)创建所需的所有文件夹并用文件填充它们后,您可能会搜索生成虚拟文件或重命名这些文件夹中所有文件的方法。在这种情况下,以下是有关如何创建随机虚拟文件(create random dummy files)和重命名文件夹中所有文件的说明。(rename all files)
3. 如何使用“Text 2 Folders(Folders) ”等应用程序一次创建多个文件夹
在Windows(Windows)中创建多个文件夹的第三种方法是基于使用名为Text 2 Folders的第三方应用程序。它不是唯一可以做到这一点的应用程序,但它是最容易使用的应用程序之一。您可以从其官网下载:Text 2 Folders。将其安装到计算机上后,解压缩 ZIP(extract the ZIP)文件的内容并运行其中的Text2Folders.exe文件。
Text2Folders.exe 文件
在Text 2 Folders应用程序中,单击或点击“根文件夹”(“Root folder”)字段,然后键入要一次创建多个文件夹的文件夹的位置。或者,您也可以按浏览(Browse)并简单地导航到该文件夹。
选择根文件夹
在应用程序的“文件夹创建”(“Folder creation”)部分中选择手动。(Manual)然后,在窗口的右侧,同时键入您要创建的新文件夹的名称。您应该通过在每个新文件夹之后按键盘上的Enter将每个新文件夹放在一个新行上。为了创建我们想要的三个文件夹(Ciprian、Diana和Codrut),我们输入了以下内容:
选择创建多个文件夹
输入所有新文件夹后,按应用程序右下角的“创建文件夹”按钮。(“Create folders”)
按创建(Create)文件夹按钮同时创建多个文件夹
然后,Text 2 Folders一次性创建所有文件夹。
您最喜欢在Windows中一次创建多个文件夹的方式是什么?
现在您知道如何在任何Windows(Windows)计算机或设备上同时创建多个文件夹。你最喜欢的方法是什么,为什么需要这样做?是像我们的示例中那样创建“学生文件夹”,还是要创建多个文件夹来组织照片?你(Did)还有其他原因吗?请在下面的评论部分告诉我们,如果您知道其他自动创建文件夹的方法,请不要犹豫与我们的读者和我们分享!
How to create multiple folders at once -
Are you wondering how to create mυltiple folders in Windows 10 or Windows 7? That can bе very useful if you’re a teacher, for instance. Say that you haνe a dozen ѕtudents in a class, and you need to makе a folder for each of them on yоur Windows РC. Sure, you can manually create a folder for each student, but that might take a long time. Fortunately, there аre а couple of wаys to automate this, and we’re going to show them to you in this tutorial. So, withоut further ado, let’s see how to create multiple folders at once, using simple commands and aрps:
1. How to create multiple folders at once using CMD
Command Prompt is still one of the most powerful automation tools in Windows, regardless of whether you use Windows 10 or Windows 7. To create multiple folders at once, first open Command Prompt. A quick way to do it is by using the search field on your taskbar and entering cmd in it.
Opening Command Prompt in Windows 10
Use the cd command to get to the folder in which you want to create your new folders. For example, we’re going to make our folders inside the C:\Students folder, so we have to type cd C:\Students.
Switching to a new folder using the cd command
A faster way to make the previous steps is to open File Explorer, navigate to the folder in which you want to create the multiple folders, type cmd in File Explorer’s address bar, and press Enter on your keyboard.
Opening cmd inside a folder using File Explorer
Next comes the most crucial step, which is to actually create multiple folders at once. To do that, in Command Prompt, run the following command: md folder1 folder2 folder3. Change the names of folder1, folder2, folder3 with the names of the folders you want to create on your computer. Also, you can add as many folders as you want to the command.
In our example, we want to create a couple of folders named after the writers on our website: Ciprian, Codrut, and Diana. To make all these folders at once, we have to run: md Ciprian Diana Codrut.
Using md to create multiple folders at once
Command Prompt instantly creates all the folders at once, as illustrated in the following screenshot.
Multiple folders created at the same time
NOTE: If you want to create folders with names that contain spaces, like My New Folder 1, My New Folder 2, My New Folder 3, etc., make sure to put the names between quotation marks or apostrophes, like this: md “My New Folder 1” “My New Folder 2” “My New Folder 3”. And, if you want to learn more about md, read this guide about useful commands for CMD.
2. How to create multiple folders at once using PowerShell
PowerShell offers a similar method to create multiple folders at the same time in Windows. Start PowerShell (look for powershell using the search field on your taskbar) and use the cd command to get to the folder where you want to create the new folders.
We’re going to use the same example as in the previous method, so the command we have to run is cd C:\Students, to navigate to the folder in which we want to create multiple subfolders.
Switching to a different folder using PowerShell
Then, run the following command: "folder1","folder2","folder3" | %{New-Item -Name "$_" -ItemType "Directory"}. Instead of folder1, folder2, folder3, type the names of the folders you want to make. Leave the rest of the command as is, and note that you can specify as many new folders as you want, not just three.
To exemplify, we’re going to create three folders at once, named after our team at Digital Citizen: Ciprian, Diana, and Codrut. To do that, we have to run this command: "Ciprian","Diana","Codrut" | %{New-Item -Name "$_" -ItemType "Directory"}.
Creating multiple folders at once
In an instant, Windows creates these multiple folders, all at once.
TIP: Once you created all the folders you needed and populated them with files, you might search for ways to generate dummy files or rename all the files in those folders. In that case, here are instructions for how to create random dummy files and rename all files in a folder.
3. How to create multiple folders at once using an app like “Text 2 Folders”
The third method to create multiple folders in Windows is based on using a third-party application called Text 2 Folders. It’s not the only app that can do that, but it’s one of the easiest to use. You can download it from its official website: Text 2 Folders. Once you have it on your computer, extract the ZIP file’s contents and run the Text2Folders.exe file inside.
The Text2Folders.exe file
In the Text 2 Folders app, click or tap on the “Root folder” field and type the location of the folder in which you want to create multiple folders at once. Alternatively, you can also press Browse and simply navigate to that folder.
Selecting the Root folder
Select Manual in the “Folder creation” section of the app. Then, on the right side of the window, type the names of the new folders that you want to create at the same time. You should put each new folder on a new line by pressing Enter on your keyboard after each of them. Here’s what we’ve entered in order to create the three folders (Ciprian, Diana, and Codrut) that we want:
Choosing to create multiple folders
After you’ve typed all the new folders, press the “Create folders” button from the app’s bottom-right corner.
Pressing the Create folders button makes multiple folders at the same time
Then, Text 2 Folders creates the folders all at once.
What’s your favorite way of creating multiple folders at once in Windows?
Now you know how to create multiple folders at the same time on any Windows computer or device. What’s your favorite method, and why did you need to do that? Was it for creating “student folders” like in our example, or did you want to create multiple folders for organizing your photos? Did you have other reasons? Let us know in the comments section below, and if you know other ways to automate creating folders, don’t hesitate to share them with our readers and also with us!