0

I have about 1000 folders that I need to put subfolders in.

In each one of those folders I need to create these 3 identical folders

Contracts
Leases
General

Is there a way to tell powershell to look at each folder, and then put in those subfolders?

1 Answer 1

1

You can try something like this:

#Get your directories
$folders = Get-ChildItem -Directory

#Loop through folders and make the subdirectories
$folders | ForEach-Object {
mkdir "$($_.FullName)\Contracts"
mkdir "$($_.FullName)\Leases"
mkdir "$($_.FullName)\General"
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.