Anyone good with Powershell?

multiband8303

Senior member
Aug 8, 2005
593
0
0
Need to write a script that will accomplish this..

Environment = numerous folders with numerous child folders such as this.

Parent folder = client name
Child Folder = Part 1 child folder of part 1 = section a
Child Folder = part 2 child folder of part 2 = section a

etc etc

I just want to create a part 7 folder for each client. and set permissions with this script. I could do it manually but it would take hours.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,631
4,559
75
Does that really need PowerShell? It looks like something that could be done at a regular command prompt, with:

for /d %i in (*) do mkdir "%i\part 7" && mkdir "%i\part7\section a"
 

multiband8303

Senior member
Aug 8, 2005
593
0
0
Originally posted by: Ken g6
Does that really need PowerShell? It looks like something that could be done at a regular command prompt, with:

for /d %i in (*) do mkdir "%i\part 7" && mkdir "%i\part7\section a"

could you elaborate the exact syntax?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,631
4,559
75
Ooohkay...

Start by typing "for /?". That gives you the syntax for "for".

for /d goes through directories. in (*) means all directories in the current one.