Answer the question
In order to leave comments, you need to log in
How to get latest opened files in python program?
I want to write a python program that, after opening it, will have to copy the last 5 open files and copy them to a folder on the desktop, that is, make backups. How can I get these files? If you open Explorer and go to the quick access section, then the last 5 files will be what we need. But how to get them from the quick access tab? It is essentially not a folder and does not store files, but simply indicates their location.
Answer the question
In order to leave comments, you need to log in
Quick access takes the latest files from here:
%AppData%\Microsoft\Windows\Recent\
It is essentially not a folder and does not store files, but simply indicates their location.
C:\Users\%user%\AppData\Roaming\Microsoft\Windows\Recent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question