Return to Snippet

Revision: 49637
at July 27, 2011 04:50 by danfsmith


Initial Code
$StartDate = (get-date -year 2011 -month 6 -day 2)
$EndDate = (get-date -year 2011 -month 6 -day 4)
Get-ChildItem t:\ -Recurse | Where-Object {($_.LastWriteTime.Date -ge $StartDate.Date) -and ($_.LastWriteTime.Date -le $EndDate.Date)} | Copy-Item -Destination 'C:\logs'

Initial URL

                                

Initial Description

                                

Initial Title
Copy Files by Date Modified

Initial Tags
date, files

Initial Language
Windows PowerShell