AlanTsai
11/24/2015 - 9:51 AM

Set specific LastWriteTime (Modified Time) of a directory child file. 把資料夾下面檔案的最後修改時間改成特定時間. #powershell

Set specific LastWriteTime (Modified Time) of a directory child file. 把資料夾下面檔案的最後修改時間改成特定時間. #powershell

# 日期格式是 dd/MM/yyyy HH:mm
dir -file -recurse | % { $_.LastWriteTime = '11/19/2015 14:20' }