Skip to content

delaney-data/PowerShellBulkNewFolders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Create New Folders in Bulk with PowerShell

Description

In this project, we’re going to use PowerShell to create new folders on our system in bulk. I used this process to automate this manual administrative step for myself and my team at work. This project could be enhanced even more depending on your goal. For this example, I’ll show you how to create new 12 folders for each month of the year.

Languages and Utilities Used

  • Windows PowerShell ISE

Environments Used

  • Windows 10

Walk-through:

Launch the utility:

PowerShell Steps

Next, change directory. The PowerShell window may open with you in the USER folder by default.
You’ll need to change directory (cd) to the file location you want the folders to go:

PowerShell Steps

Begin creating your folder names inside quotations, and separated by a comma. If it’s easier for you to create all of the names in advance in a word processing app and format them with quotations and commas, I recommend you do so.

After you've set up your folder names, you’ll need to tell PowerShell what you want to do with these by piping (|) to a command as follows:
| %{New-Item -Name "$_" -ItemType "Directory"}

PowerShell Steps

PowerShell Steps

The end results. As we can see, the script successfully created these new folders to the specific location with one command.😊

PowerShell Steps

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages