It is necessary to select the newest files from one folder (with a bunch of subfolders) and copy them to another folder. I figured out the copy, but I don’t understand how to select the exact files that I need.
Search prompted: Get-ChildItem | Where-Object{$_.CreationTime.Day -like "23"} Get-ChildItem | Where-Object{$_.CreationTime.Day -like "23"} . But this is exactly for a particular day sampling.
Do not tell me where to look, not to take all the dates of files, sort, and then choose? If in no other way how to do it faster? There are just a lot of files, so this script will be processed for very long.
To use anything other than Powershell and cmd is impossible.