{"id":8307,"date":"2025-05-05T13:54:17","date_gmt":"2025-05-05T08:24:17","guid":{"rendered":"https:\/\/www.conceptworld.com\/blog\/?p=8307"},"modified":"2025-05-27T19:08:31","modified_gmt":"2025-05-27T13:38:31","slug":"pick-files-from-multiple-folders-compress-into-a-zip-file-using-powershell-alternative-replacement","status":"publish","type":"post","link":"https:\/\/www.conceptworld.com\/blog\/index.php\/pick-files-from-multiple-folders-compress-into-a-zip-file-using-powershell-alternative-replacement\/","title":{"rendered":"Pick files from multiple folders &#038; compress into a zip file using PowerShell alternative replacement"},"content":{"rendered":"\n<p>Hey Guys! Managing files across multiple folders can be a challenge, especially when you need to pick specific file types and compress them into a ZIP file. This guide will walk you through how to achieve this using both Copywhiz and PowerShell. <\/p>\n\n\n\n<p>Let&#8217;s take a look on how to achieve this using Copywhiz: <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Copywhiz?<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.conceptworld.com\/Copywhiz\" data-type=\"link\" data-id=\"https:\/\/www.conceptworld.com\/Copywhiz\" target=\"_blank\" rel=\"noreferrer noopener\">Copywhiz<\/a> enhances your file-copy experience by letting you to have more flexibility &amp; control over the file copying and backup process. <\/p>\n\n\n\n<p>Here is how <a href=\"https:\/\/www.conceptworld.com\/Copywhiz\" data-type=\"link\" data-id=\"https:\/\/www.conceptworld.com\/Copywhiz\" target=\"_blank\" rel=\"noreferrer noopener\">Copywhiz<\/a> makes file copying a breeze: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy only new or modified files<\/li>\n\n\n\n<li>Easily pick files by name, extension, folder etc from bunch of folders<\/li>\n\n\n\n<li>Automatically organize files based on file attributes and metadata<\/li>\n\n\n\n<li>Copy files to multiple folders\/computers<\/li>\n\n\n\n<li>Copy files from multiple folders and paste them at once<\/li>\n\n\n\n<li>Sync files between source and destination<\/li>\n\n\n\n<li>Pick files from multiple folders and compress in single .zip file<\/li>\n\n\n\n<li>Schedule file backups<\/li>\n\n\n\n<li>Verify copied files for data integrity<\/li>\n\n\n\n<li>Retain security attributes of files &amp; folders (ownership\/user access)<\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Features\" target=\"_blank\">Several more hidden nuggets<\/a>&nbsp;designed to make your file-copy task easier.<\/li>\n<\/ul>\n\n\n\n<p>Here is a video describing this feature: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Windows: Pick files of different types from multiple folders &amp; compress into a zip file in Copywhiz\" width=\"660\" height=\"495\" src=\"https:\/\/www.youtube.com\/embed\/uwTA3fnH9oY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Video Transcription: <\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>As we see in the video, we are copying various files from different folders. <\/li>\n\n\n\n<li>Right-click and add it to Copywhiz. <\/li>\n\n\n\n<li>Go to the destination folder, right-click and choose Copywhiz Paste Special.<\/li>\n\n\n\n<li>Under Paste special we can see Paste as compressed zip file.<br><br><img decoding=\"async\" width=\"524\" height=\"323\" class=\"wp-image-8386 img-border\" style=\"width: 524px;\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022.png\" alt=\"\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022.png 1126w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022-300x185.png 300w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022-1024x632.png 1024w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022-768x474.png 768w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/12\/Screenshot-2025-04-30-204022-825x510.png 825w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><br><br><\/li>\n\n\n\n<li>Specify the name and paste now. <\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Using PowerShell: <\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Open PowerShell<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\">\n<li>Press <strong>Win + X<\/strong> and select <strong>Windows Terminal (Admin)<\/strong> or <strong>PowerShell (Admin)<\/strong>.<\/li>\n\n\n\n<li>Navigate to the directory where you want to create the ZIP file using:<code>cd \"C:\\Users\\YourUser\\Documents\"<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Select and Compress Files<\/strong><\/h3>\n\n\n\n<p>Use the following PowerShell command to pick files of different types from multiple folders and compress them:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$sourceFolders = @(\"C:\\Folder1\", \"C:\\Folder2\", \"C:\\Folder3\")\n$destinationZip = \"C:\\Users\\YourUser\\Documents\\SelectedFiles.zip\"\n$fileTypes = \"*.txt\", \"*.jpg\", \"*.pdf\"\n\n# Create a temporary folder\n$tempFolder = \"C:\\TempSelectedFiles\"\nNew-Item -ItemType Directory -Path $tempFolder -Force\n\n# Copy matching files to temporary folder\nforeach ($folder in $sourceFolders) {\n    foreach ($type in $fileTypes) {\n        Copy-Item -Path (Join-Path -Path $folder -ChildPath $type) -Destination $tempFolder -Force -ErrorAction SilentlyContinue\n    }\n}\n\n# Create ZIP file\nCompress-Archive -Path \"$tempFolder\\*\" -DestinationPath $destinationZip -Force\n\n# Remove temporary folder\nRemove-Item -Path $tempFolder -Recurse -Force\n\nWrite-Output \"ZIP file created successfully at $destinationZip\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Explanation:<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The script selects files from multiple source folders.<\/li>\n\n\n\n<li>It filters files by extension (<code>*.txt<\/code>, <code>*.jpg<\/code>, <code>*.pdf<\/code>, etc.).<\/li>\n\n\n\n<li>The selected files are copied to a temporary folder.<\/li>\n\n\n\n<li><code>Compress-Archive<\/code> creates the ZIP file.<\/li>\n\n\n\n<li>The temporary folder is deleted after compression.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Copywhiz provides simplicity and convenience for everyday tasks.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.conceptworld.com\/Copywhiz\" target=\"_blank\">Learn more about<\/a>&nbsp;Copywhiz. Download the free trial&nbsp;<a href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Download\">from here<\/a>.<\/p>\n\n\n\n<p>For short tutorial videos,&nbsp;<a href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Videos\" target=\"_blank\" rel=\"noreferrer noopener\">Check out this page<\/a>.<\/p>\n\n\n\n<p>Subscribe to our&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/channel\/UCULI5s6KJn-0iDIeqJRUWQA\/featured?view_as=subscriber\" target=\"_blank\">YouTube channel<\/a>&nbsp;for interesting videos.<\/p>\n\n\n\n<p>Check out our&nbsp;<a href=\"https:\/\/www.conceptworld.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">other cool products<\/a>.<\/p>\n\n\n\n<p>Have a good day!<\/p>\n\n\n\n<p>Thanks :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey Guys! Managing files across multiple folders can be a challenge, especially when you need to pick specific file types and compress them into a ZIP file. This guide will walk you through how to achieve this using both Copywhiz and PowerShell. Let&#8217;s take a look on how to achieve this using Copywhiz: Here is &hellip; <a href=\"https:\/\/www.conceptworld.com\/blog\/index.php\/pick-files-from-multiple-folders-compress-into-a-zip-file-using-powershell-alternative-replacement\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pick files from multiple folders &#038; compress into a zip file using PowerShell alternative replacement<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-8307","post","type-post","status-publish","format-standard","hentry","category-copywhiz"],"_links":{"self":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=8307"}],"version-history":[{"count":4,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8307\/revisions"}],"predecessor-version":[{"id":8504,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8307\/revisions\/8504"}],"wp:attachment":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=8307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=8307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=8307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}