/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
$StartDate = (get-date -year 2011 -month 6 -day 2) $EndDate = (get-date -year 2011 -month 6 -day 4) Get-ChildItem t:\ -Recurse | Where-Object {($_\3.LastWriteTime.Date -ge $StartDate.Date) -and ($_\3.LastWriteTime.Date -le $EndDate.Date)} | Copy-Item -Destination 'C:\logs'
You need to login to post a comment.
