开发者

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

开发者 https://www.devze.com 2023-02-26 21:40 出处:网络
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:

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

精彩评论

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