Answers for "subfolder and files only to this folder powershell"

0

put files in every subfolder in powershell

# List all the folders in Banana
$folders = Get-ChildItem C:Banana
foreach ($folder in $folders.name){
#For each folder in C:banana, copy folder c:copyme and it's content to c:banana$folder
Copy-Item -Path "C:copyme" -Destination "C:banana$folder" -Recurse
}
Posted by: Guest on September-09-2021

Code answers related to "subfolder and files only to this folder powershell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language