【发布时间】:2019-01-27 15:55:15
【问题描述】:
我有一个 powershell 脚本,我想做的就是将某种类型的文件从指定的文件夹移动到目标文件夹。不幸的是,如果没有包含 -Recurse,这将无法工作,这不是我想要实现的功能。如果我包含 -Recurse 它开始从“D:/Photos/x/”等移动图像。我要做的就是将文件从“D:/Photos”移动到目的地
Get-ChildItem "D:\Photos" -Include *.png, *.jpeg, *.jpg |
Move-Item -Destination "D:\Photos\Powershell Task" -Force
【问题讨论】:
标签: powershell