documents:proglang:powershell:powershell-002
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン | |||
| documents:proglang:powershell:powershell-002 [2026/05/08 12:00] – ↷ documents:os:windows:powershell:powershell-002 から documents:proglang:powershell:powershell-002 へページを移動しました。 k896951 | documents:proglang:powershell:powershell-002 [2026/05/13 07:18] (現在) – [ファイルの作成日・更新日の書換えのメモ] k896951 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== 001.ファイルの作成日・更新日の書換えのメモ ====== | ||
| + | |||
| + | 2024/ | ||
| + | 自分用メモ | ||
| + | |||
| + | |||
| + | PowerShellでファイルの作成日・更新日を書き換えするコマンドライン。 | ||
| + | |||
| + | ファイルパスにドライブレターを含めているとエラーが出るようなので注意。 | ||
| + | |||
| + | |||
| + | ===== 作成日の変更 ===== | ||
| + | |||
| + | < | ||
| + | Set-ItemProperty %PathToFile% -Name CreationTime -Value " | ||
| + | </ | ||
| + | |||
| + | ===== 更新日の変更 ===== | ||
| + | |||
| + | < | ||
| + | Set-ItemProperty %PathToFile% -Name LastWriteTime -Value " | ||
| + | </ | ||
| + | |||
| + | ===== 参照日の変更 ===== | ||
| + | |||
| + | < | ||
| + | Set-ItemProperty %PathToFile% -Name LastAccessTime -Value " | ||
| + | </ | ||
| + | |||
| + | |||
| + | {{tag> 技術資料 Windows PowerShell ファイル作成日 ファイル更新日}} | ||
| + | |||
documents/proglang/powershell/powershell-002.txt · 最終更新: by k896951
