ユーザ用ツール

サイト用ツール


03_windows:99_other:41_modify_update_time

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
03_windows:99_other:41_modify_update_time [2018/05/21 05:03] – 作成 matsui03_windows:99_other:41_modify_update_time [2018/05/21 05:18] (現在) matsui
行 1: 行 1:
 +====== 41 Windows 更新日時を変更 ======
  
 +Windows の場合、Linuxのように [[02_freebsd:80_unixコマンド:touch|touch]] コマンドもないので PowerShell 下記のようにで行う。
 +
 +更新日時
 +  Set-ItemProperty "C:\hoge.txt" -Name LastWriteTime -Value "2015/01/01 10:20:30"
 +
 +作成日時
 +  Set-ItemProperty "C:\hoge.txt" -Name CreationTime  -Value "2015/01/01 10:20:30"
 +
 +アクセス日時
 +  Set-ItemProperty "C:\hoge.txt" -Name LastAccessTime  -Value "2015/01/01 10:20:30"
 +
 +
 +{{tag>windows}}