|
Answer» Good morning everyone- I'm from Europe, I'm in my early 30s and in need of a bit of scripting help. Sorry if my question sounds silly but I've always better versed in Hardware rather than software.
I'm in need of an allegedly simple script to run on in Windows 7 CMD, that allows me to SPECIFY a folder and from that (and its subfolders) extract all the FILES of a given extension, created the same day it's run.
Looked for something LIKE this for a while but only found variations that do not fill entirely the bill. Is there anyone capable of helping me? :/
Thank you so very much in advance.Ok, Trying I managed to MAKE this- I'm actually using powershell instead of Xcopy... more flexibility.
Get-ChildItem c:\**source** -Recurse -Filter "*.jpg" | Copy-Item -destination C:\**destination** | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-1)}
My only PROBLEM is that it still grabs every files, despite the date filter... what am I doing wrong?
|