使用Powershell修改文件时间

只需要简单几条命令即可修改pdf等文件的时间,用来应付审计。

$(Get-Item .\FXS_UAT_01_7uohyx.pdf).creationTime = $(Get-Date "04/14/2022 17:13:22")

$(Get-Item .\FXS_UAT_01_7uohyx.pdf).lastaccessTime = $(Get-Date "04/14/2022 17:13:22")

$(Get-Item .\FXS_UAT_01_7uohyx.pdf).lastwriteTime = $(Get-Date "04/14/2022 17:13:22")

猜你喜欢

转载自blog.csdn.net/weixin_39997829/article/details/126904188
今日推荐