{"id":4897,"date":"2020-11-17T21:40:47","date_gmt":"2020-11-17T21:40:47","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4897"},"modified":"2022-12-02T03:29:23","modified_gmt":"2022-12-02T03:29:23","slug":"how-to-append-the-date-on-the-name-of-the-end-of-a-file-in-powershell","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-append-the-date-on-the-name-of-the-end-of-a-file-in-powershell","title":{"rendered":"How to append the date on the name of the end of a file in powershell"},"content":{"rendered":"<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">Get-ChildItem C:\\Temp\\*.zip | ren -NewName { &quot;$($_.BaseName)$(get-date -format &quot;_yyyyMMddhhmmss&quot;)$($_.extension) &quot;} <\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3386,2808,576,3387],"class_list":["post-4897","post","type-post","status-publish","format-standard","hentry","category-research","tag-append","tag-date","tag-powershell","tag-rename"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4897"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4897\/revisions"}],"predecessor-version":[{"id":6471,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4897\/revisions\/6471"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}