0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows ではファイルのタイムスタンプを更新する

Posted at

Windows の場合はコマンドが無く、GUI からの更新もできません。

なので PowerShellを管理者として実行し使うことになります。

更新日時の変更
PS> Set-ItemProperty "C:\foo.txt" -Name LastWriteTime -Value "2021/03/29 20:30:00"

作成日時の変更
PS> Set-ItemProperty "C:\foo.txt" -Name CreationTime -Value "2021/03/29 20:30:00"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?