{"id":1668,"date":"2021-10-24T05:28:01","date_gmt":"2021-10-24T05:28:01","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=1668"},"modified":"2021-10-24T05:28:28","modified_gmt":"2021-10-24T05:28:28","slug":"solved-i-want-xcopy-to-both-copy-and-rename-multiple-files","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/i-want-xcopy-to-both-copy-and-rename-multiple-files\/27365.html","title":{"rendered":"Solved I Want Xcopy To Both Copy and Rename Multiple Files"},"content":{"rendered":"<p>I can easily use xcopy to copy files to another location<\/p>\n<p>xcopy &#8220;\\\\Source\\*.*&#8221; &#8220;\\\\Destination\\&#8221; \/y\/s<\/p>\n<p>but I would then like the copied files to be renamed to append &#8220;Copy of &#8221; or similar to the start of the file.<\/p>\n<p>I have managed code which will replace the first 8 characters of the filename<\/p>\n<p>xcopy &#8220;Source\\*.*&#8221; &#8220;destination\\Copy of *.*&#8221; \/y \/s<\/p>\n<p>but haven&#8217;t a way of appending this.<\/p>\n<p>Can anyone help?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":7},"question-category":[55],"question_tags":[],"class_list":["post-1668","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/1668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=1668"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=1668"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}