Drona
Drona

Reputation: 7234

one liner shell command for changing file creation date in windows

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

Answers (2)

Lee Richardson
Lee Richardson

Reputation: 8837

If you have Windows Subsystem for Linux you can do it in two commands:

  1. wsl
  2. touch [file]

Upvotes: 0

Deanna
Deanna

Reputation: 24273

There is no (native) command line program to change the creation time of a file.

Upvotes: 1

Related Questions