So,I will try to explain this as much as I can. Ive tried to create a simple code which will create various folders regarding 3 parameters
- where folders should be made
- how deep should the path be....hope the translation is correct
- how many folders are supposed to be created in the end folder
I can say that I have the last step...but I dont have idea how to create the rest. Please see the notepad description below..and also what Ive done so far.
param (
$path = "C:\test",
$M = 5,
$N = 2)
for ($i = 0; $i -lt $M; $i++)
{ $name = (New-Guid).guid
New-Item -ItemType Directory -path $path -name $name -force
}
Thanks for the ideas !
You never change the value of
$path
, so all the new directories will be created under the same root folder.