开发者

How do I change the 'modified' timestamp of a file in Windows using a batch file?

How do I change the 'modified' timestamp of a file in Windows using a batch fil开发者_如何学编程e?


If you have cygwin, or git for Windows, installed and on the PATH you can use the touch command:

touch -d "date and time" filename

(omit the -d flag to use the current date and time.)

Alternatively, see the answers to this question: https://stackoverflow.com/questions/51435/windows-version-of-the-unix-touch-command

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜