<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									powershell - select files modified X hours ago and copy them - BugOverflow				            </title>
            <link>https://muszak.eu/community/bugoverflow/powershell-select-files-modified-x-hours-ago-and-copy-them/</link>
            <description>muszak.eu Forum dyskusyjne</description>
            <language>pl-PL</language>
            <lastBuildDate>Sat, 18 Jul 2026 15:27:58 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: powershell - select files modified X hours ago and copy them</title>
                        <link>https://muszak.eu/community/bugoverflow/powershell-select-files-modified-x-hours-ago-and-copy-them/#post-66</link>
                        <pubDate>Fri, 23 Apr 2021 22:52:03 +0000</pubDate>
                        <description><![CDATA[#select files older than 2 hours
$date = Get-Date
$start_date = $date.AddHours(-2) 

#cleanup destination directory
Remove-Item MY_DESITNATION_DIR* -Recurse

#copy
Get-ChildItem -Pat...]]></description>
                        <content:encoded><![CDATA[<pre>
#select files older than 2 hours
$date = Get-Date
$start_date = $date.AddHours(-2) 

#cleanup destination directory
Remove-Item MY_DESITNATION_DIR* -Recurse

#copy
Get-ChildItem -Path Backup -File |
    Where-Object { $_.LastWriteTime -gt  $start_date } |
    ForEach-Object {
        Copy-Item -Path MY_SOURCE_DIR$_ -Destination 'MY_DESITNATION_DIR' 
    }
</pre>]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/powershell-select-files-modified-x-hours-ago-and-copy-them/#post-66</guid>
                    </item>
				                    <item>
                        <title>powershell - select files modified X hours ago and copy them</title>
                        <link>https://muszak.eu/community/bugoverflow/powershell-select-files-modified-x-hours-ago-and-copy-them/#post-65</link>
                        <pubDate>Fri, 23 Apr 2021 22:50:26 +0000</pubDate>
                        <description><![CDATA[example script, ps1]]></description>
                        <content:encoded><![CDATA[example script, ps1]]></content:encoded>
						                            <category domain="https://muszak.eu/community/bugoverflow/">BugOverflow</category>                        <dc:creator>mrmucha</dc:creator>
                        <guid isPermaLink="true">https://muszak.eu/community/bugoverflow/powershell-select-files-modified-x-hours-ago-and-copy-them/#post-65</guid>
                    </item>
							        </channel>
        </rss>
		