Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically Access Recent Files and Downloads Lists
Message
De
22/05/2016 03:10:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01636684
Message ID:
01636692
Vues:
91
>When a GetFile command is issued for a particular file type (PDF, DOC, XLS, etc.), the Combo box fills with a list of most recently written files. Is there a way to programmatically access this list from VFP?

If the list for a specific application is handled automatically by Windows, it is stored in a file in %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations folder. Each application is identified by an signature (for instance, Notepad has the signature "9b9cdc69c1c24e2b", so the file 9b9cdc69c1c24e2b.automaticDestinations-ms holds the list of used files of Notepad. To retrieve this list programmatically, you must know the id for the application, read the file and parse it. The bad news is that parsing is not trivial, since it is a binary file. Windows 10 uses a pattern that eases the parsing, but I don't know if it can be generalized...

>
>Also is there a way to programmatically access the Windows Download List?

Do you mean, accessing the contents of the Downloads folder?
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform