GCI C:\logs | ?{$_.LastWriteTime -gt (Get-Date).adddays(-2).Date} | Copy-Item -Destination C:\Logcopy
Last question would be are you interested in the LastWriteTime or the CreationTime?
VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.
TRUSTED BY
Do you want to copy all the files in the folder each day?
Where are the files going to?
Do you only want to copy a certain date or age of files?
How does the time stamp factor in, and is that inside the data of the file, or in the file name?
Etc...
~bp