如何使用批处理文件更改Windows中文件的“已修改”时间戳?

时间:2011-04-16 10:54:53

标签: windows file batch-file

如何使用批处理文件更改Windows中文件的“已修改”时间戳?

1 个答案:

答案 0 :(得分:3)

如果你安装了cygwin并且在PATH上你可以使用touch命令:

touch -d "date and time" filename

(省略-d标志以使用当前日期和时间。)

或者,请参阅此问题的答案:https://stackoverflow.com/questions/51435/windows-version-of-the-unix-touch-command