.NET & DevOps Engineer | Cloud Specialist | Team Enabler
My name is Miha and I've been tinkering with computers for some time now. I remember getting Pentium 100 in the late '90s and that's how it all started.
Specialities:
by Miha J.
Below is a simple Powershell script that can copy a folder to X folders through a for-loop. You can do it like this:
For ($i=0; $i -le 1000; $i++)
{
Copy-Item -path "C:\Temp\Source\*" -Destination "C:\Temp\Destination\Folder-$($i)" -Force -Recurse
}
That will copy all the contents of the folder C:\Temp\Source
to 1000 folders of C:\Temp\Destination\Folder-X
where X is an a loop counter.
It will also do a deep copy, going through all the folders recursively in the source folder.