0
我使用PowerShell的重命名项命令来更改文件扩展名如下,但它不更新文件上的时间戳:PowerShell的重命名,项目不更新文件的时间戳
Get-Item 'C:\mytest.config' | Rename-Item -NewName { $_.name -Replace '\.config','.config.disabled' }
是否重命名-item不更新时间戳,如果是这样,当我使用上面的方法重命名文件时,如何更新时间戳?