How to append the date on the name of the end of a file in powershell

 

Get-ChildItem C:\Temp\*.zip | ren -NewName { "$($_.BaseName)$(get-date -format "_yyyyMMddhhmmss")$($_.extension) "} 
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Tags: append, date, powershell, rename

Trackback from your site.