【发布时间】:2019-11-15 08:08:20
【问题描述】:
我正在尝试使用 MS Powershell 更改文件夹中所有文件和子文件夹中所有文件的 lastwritedate 我已经到了检索所有关注文件的列表
Get-ChildItem -Path . -Recurse -Filter *.* -File
现在我想更改找到文件的日期
(Get-ChildItem -Path . -Recurse -Filter *.* -File) | (Get-Item).lastwritetime=$(Get-Date "10/10/2019 01:05 pm")
但不幸的是它失败了。谁能帮帮我。
【问题讨论】:
标签: powershell file file-attributes