2014-git-work/powershell/date.ps1
2012-08-28 22:46:51 +09:00

2 lines
No EOL
352 B
PowerShell
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 同じディレクトリにあるすべてのファイルのファイル名に日付を挿入する
ls -exclude date.* | ren -newname {$_.name -replace "^" , "$((get-itemproperty $_).lastwritetime -replace " .*" , $() -replace "/", "-") "}