📌  相关文章
📜  将文件放在 powershell 中的每个子文件夹中 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:39.152000             🧑  作者: Mango

代码示例1
# 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
}