Skip to content

Instantly share code, notes, and snippets.

@va2577
Created April 9, 2017 04:37
Show Gist options
  • Save va2577/1e5ef34d7f191d12774cedaaff741c37 to your computer and use it in GitHub Desktop.
Save va2577/1e5ef34d7f191d12774cedaaff741c37 to your computer and use it in GitHub Desktop.
[Windows]ファイルの更新日時を一括で変更するコマンド(PowerShell)
Get-ChildItem -Recurse |
Where-Object { $_ -is [System.IO.FileInfo] } |
ForEach-Object { Set-ItemProperty $_.FullName -Name LastWriteTime -Value ("2016/02/07" + " " + $_.LastWriteTime.ToString("HH:mm:ss")) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment