http://ftw.edu.wwx.tw/solutions/xing-qing-cheng-shi-shuo-ming/log_killers/log_killer_files/ChangeFileDateAs.rar?attredirects=0&d=1
之前寫的小工具,
用來把一個檔案的修改日期改成跟另一個檔案一樣
Z:\>ChangeFileDateAs
Usage:
ChangeFileDateAs filename1 filename2
This will change filename1 filetime as filename2
看看有沒有幫助
可以用 powershell
格式:
$(Get-Item filename).lastwritetime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
範例:
$(Get-Item yourfile.csv).LastWriteTime=$(Get-Date 12/25/2016)