{"id":8087,"date":"2024-12-24T08:59:47","date_gmt":"2024-12-24T03:29:47","guid":{"rendered":"https:\/\/www.conceptworld.com\/blog\/?p=8087"},"modified":"2025-04-25T17:23:05","modified_gmt":"2025-04-25T11:53:05","slug":"copy-files-modified-in-last-x-days-in-windows-using-a-powershell-alternative-replacement","status":"publish","type":"post","link":"https:\/\/www.conceptworld.com\/blog\/index.php\/copy-files-modified-in-last-x-days-in-windows-using-a-powershell-alternative-replacement\/","title":{"rendered":"Copy files modified in last X days in Windows using a PowerShell alternative replacement"},"content":{"rendered":"\n<p>Copying files modified in last X days is a common requirement for backups, file synchronization, and efficient file management. <strong>Copywhiz<\/strong> and <strong>PowerShell<\/strong> are two such tools. This blog will guide you through both methods.<\/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<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00.png\"><img decoding=\"async\" width=\"1024\" height=\"803\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00-1024x803.png\" alt=\"\" class=\"wp-image-7584\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00-1024x803.png 1024w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00-300x235.png 300w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00-768x602.png 768w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/03\/Screenshot_2024-03-20-19-04-23_2024-03-28-19-45-00.png 1377w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><em>An image showing one of Copywhiz&#8217;s feature <\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Copywhiz: <\/h2>\n\n\n\n<p class=\"has-text-align-left\">Here is a short video that shows how to achieve the above mentioned 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: Find files created, modified, accessed in the last X days using Copywhiz for Windows\" width=\"660\" height=\"495\" src=\"https:\/\/www.youtube.com\/embed\/5ZUsGuvY3xo?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 Transcript:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In this video, we will copy which files were created\/modified\/accessed in the past X days.<\/li>\n\n\n\n<li>Select the folder, right-click and add it to Copywhiz.<\/li>\n\n\n\n<li>Go to the destination folder, right-click and choose Copywhiz Paste Advanced.<\/li>\n\n\n\n<li>In the Source Tab, go to the \u2018Paste by date\u2019 section.<br><img decoding=\"async\" width=\"524\" height=\"637\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshot-2025-04-21-185839.png\" alt=\"\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshot-2025-04-21-185839.png 524w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshot-2025-04-21-185839-247x300.png 247w\"><\/li>\n\n\n\n<li>Select the criteria and mention the number of days.<br><img decoding=\"async\" width=\"477\" height=\"616\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshots.png\" alt=\"\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshots.png 477w, https:\/\/www.conceptworld.com\/blog\/uploads\/2024\/04\/Screenshots-232x300.png 232w\"><\/li>\n\n\n\n<li>As in the video shown, you can see the preview.<\/li>\n\n\n\n<li>We can mention a date range as well.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Using PowerShell<\/h2>\n\n\n\n<p>You can use PowerShell to copy files based on their modification time.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example:<\/h4>\n\n\n\n<p>To copy files modified in the last 7 days:<\/p>\n\n\n\n<p>$source = &#8220;C:\\path\\to\\source&#8221;<br>$destination = &#8220;C:\\path\\to\\destination&#8221;<br>$days = 7<\/p>\n\n\n\n<p>Get-ChildItem -Path $source -File | Where-Object { $_.LastWriteTime -ge (Get-Date).AddDays(-$days) } | ForEach-Object {Copy-Item $_.FullName -Destination $destination}<\/p>\n\n\n\n<p>Explanation:<\/p>\n\n\n\n<p>Get-ChildItem: Lists all files in the source directory.<\/p>\n\n\n\n<p>Where-Object { $_.LastWriteTime -ge (Get-Date).AddDays(-$days) }: Filters files modified in the last X days.<\/p>\n\n\n\n<p>Copy-Item: Copies the files to the destination folder. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Copywhiz is an advanced, user friendly file copy and backup tool. <\/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 for reading :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Copying files modified in last X days is a common requirement for backups, file synchronization, and efficient file management. Copywhiz and PowerShell are two such tools. This blog will guide you through both methods. An image showing one of Copywhiz&#8217;s feature Using Copywhiz: Here is a short video that shows how to achieve the above &hellip; <a href=\"https:\/\/www.conceptworld.com\/blog\/index.php\/copy-files-modified-in-last-x-days-in-windows-using-a-powershell-alternative-replacement\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Copy files modified in last X days in Windows using a 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-8087","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\/8087","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=8087"}],"version-history":[{"count":10,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8087\/revisions"}],"predecessor-version":[{"id":8351,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8087\/revisions\/8351"}],"wp:attachment":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=8087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=8087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=8087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}