我有一台 Windows Server 2008 机器,上面有一个文件夹结构,如
root_folder
...........username1
....................project1
............................category
....................................subproject1
....................................subproject2
....................................subproject3
....................project2
............................category
....................................subproject1
....................................subproject2
....................................subproject3
...........username2
....................project1
............................category
....................................subproject1
....................................subproject2
....................................subproject3
....................project2
............................category
....................................subproject1
....................................subproject2
....................................subproject3
现在我需要做的是删除类别文件夹并将其内容直接复制到相应的项目(x)文件夹下。有点像这样
root_folder
...........username1
....................project1
....................................subproject1
....................................subproject2
....................................subproject3
....................project2
....................................subproject1
....................................subproject2
....................................subproject3
-----------------------------------------------------------
...........username2
....................project1
............................subproject1
............................subproject2
............................subproject3
....................project2
............................subproject1
............................subproject2
............................subproject3
-----------------------------------------------------------
如何使用 powershell 脚本完成此操作。还有什么是最好的powershell脚本或批处理文件。