Cryso Agori V.I.P. Member Oct 31, 2022 #1 I have this simple script that allows me to copy and paste items in a different folder while also changing their name in windows Powershell. Code: $destfolder = '.\destfolder\' get-childitem -Recurse -File .\srcfolder\ | Foreach-Object { $newname = $_.name $newname = $_.directory.parent.name + '-' + $_.directory.name + '-' + $_.name Copy-Item -Path $_.FullName -Destination (Join-Path $destfolder $newname) -Verbose } I'm wondering how to add multi-threading/parallel processing and maybe robocopy if possible to make it go faster.
I have this simple script that allows me to copy and paste items in a different folder while also changing their name in windows Powershell. Code: $destfolder = '.\destfolder\' get-childitem -Recurse -File .\srcfolder\ | Foreach-Object { $newname = $_.name $newname = $_.directory.parent.name + '-' + $_.directory.name + '-' + $_.name Copy-Item -Path $_.FullName -Destination (Join-Path $destfolder $newname) -Verbose } I'm wondering how to add multi-threading/parallel processing and maybe robocopy if possible to make it go faster.
Ral [SUBTRACTED] Administrator Test Pronouns He/Him Dec 1, 2022 #4 Thegoldenboy2188 said: One month too late Click to expand... My bad bro, your thread got buried between OBD threads, shitposts, and deleted bot spam How did it go?
Thegoldenboy2188 said: One month too late Click to expand... My bad bro, your thread got buried between OBD threads, shitposts, and deleted bot spam How did it go?
Cryso Agori V.I.P. Member Dec 1, 2022 #5 Ral said: My bad bro, your thread got buried between OBD threads, shitposts, and deleted bot spam How did it go? Click to expand... It's ok, Stackoverflow and reddit got me what I needed. your fine.
Ral said: My bad bro, your thread got buried between OBD threads, shitposts, and deleted bot spam How did it go? Click to expand... It's ok, Stackoverflow and reddit got me what I needed. your fine.
Ral [SUBTRACTED] Administrator Test Pronouns He/Him Dec 1, 2022 #6 Thegoldenboy2188 said: It's ok, Stackoverflow and reddit got me what I needed. your fine. Click to expand... Spoiler
Thegoldenboy2188 said: It's ok, Stackoverflow and reddit got me what I needed. your fine. Click to expand... Spoiler