Win10 uses PowerShell to create new folders in batches.

  

In the process of using Win10 computers, we often need to organize the documents. In this case, we need to create multiple folders for classification. If you create new ones, the work efficiency is obviously too low, then is there any way to create new folders in batches? In fact, in the Win10 system, we can use the PowerShell that comes with the system to create new folders in batches. For the specific operation method, please see below.

follows:

1, first found in the Start menu in Windows PowerShell, and click Open, as shown below:

2, by The command is switched to the directory where the new folder needs to be created. For the switch command, refer to the following figure:

PS: The command is unfamiliar or you can not switch. After the completion of the configuration, you can directly move to the target location.

3 After switching to the desired directory, use the following command to complete the batch creation:

mkdir $(1..10 |  % {& Quot; IThome $ _ "})

Note: the above commands, & ldquo; 1..10 & rdquo; batch number is a folder with a name indicates that the time is an integer from 1 to 10 These numbers can be customized; the content inside the curly braces {} is the text before the serial number, which shows "IThome", and these words are also customizable, “$_” The number before the generation. As can be seen from the above figure, the number is replaced by “11..20”

obtained after executing the command shown below:

Tips: When you copy and paste the above command, some versions of PowerShell may have display problems, be sure to show up If there is no problem with the text, execute the command (the cursor will be corrected to the wrong character), otherwise an error will be reported.

The above is the Win10 system using PowerShell batch new folder method, a very practical small skills, we must master!

Copyright © Windows knowledge All Rights Reserved