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
精彩评论