Reputation: 7234
After hours of searching on the internet, I still have not come across any one liner command that could change the file creation date in windows. I know there are Win32 APIs that can do the job. I dont need third party utilites. I need a single command that could be executed in the windows shell to do the job. I would eventually be opening the windows shell from Java to execute this.
Upvotes: 0
Views: 608
Reputation: 8837
If you have Windows Subsystem for Linux you can do it in two commands:
wsl
touch [file]
Upvotes: 0
Reputation: 24273
There is no (native) command line program to change the creation time of a file.
Upvotes: 1