I need to copy the newest version of a file from A directory to B directory.
The files are generated monthly and are called "20220101 File.txt" "20220201 File.txt" "20220301 File.txt"
and so on.
How can I copy every month the "latest" version of the file? For example, on August, the file "20220801 File.txt"
should be copied to B directory.
I have copied it "manually" using Robocopy, but I don't know how to do it automatically.
It doesn't matter if Python is used or any other tool.