{"id":10031,"date":"2021-12-05T02:38:38","date_gmt":"2021-12-05T02:38:38","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10031"},"modified":"2021-12-05T02:38:55","modified_gmt":"2021-12-05T02:38:55","slug":"solved-copy-multiple-files-in-multiple-folders-to-one-folder","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/copy-multiple-files-in-multiple-folders-to-one-folder\/28045.html","title":{"rendered":"Solved Copy Multiple Files In Multiple Folders To One Folder"},"content":{"rendered":"<p>I want to copy files from multiple directories without creating the directory tree. XCOPY \/S gets all the files I need, but creates the tree as well. I have more than 500 subdirectories and every folder contains files and other subdirectories. I want to copy all of the files from every subdirectory in main folder: &#8220;d:\\temp1&#8221; into a new folder named d:\\temp2 without creating the directory tree. Is there a way to do this without having to create a batch file containing a copy command for every folder?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":14},"question-category":[55],"question_tags":[],"class_list":["post-10031","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\/10031","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=10031"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10031"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10031"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}