Code: Select all
mainfolder
auto.log
subfolder1
-auto.log
subfolder2
-auto.log
subfolder3
-auto.log
I need to find the newest updated file with name "auto.log" inside any of the subfolders (which names are almost random) and copy the contents into the "auto.log" in the main folder.
The "auto.log" file keeps updating (so it's needed to copy and replace the contents into our main "auto.log" file periodically (maybe every few seconds), but at some point a new subfolder will be created with a new "auto.log" file.
So the ahk script will need to keep checking for newer files and copy the contents into the main "auto.log".
I hope I explained well and someone can help me. Thanks