Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically Access Recent Files and Downloads Lists
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01636684
Message ID:
01636720
Views:
75
>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?
>
>Also is there a way to programmatically access the Windows Download List?

Recent files comes from:
C:\Users\<username>l\AppData\Roaming\Microsoft\Windows\Recent
Recent files only end up in that folder if the application uses a registered extension which goes into the Recent list and also into the MRU list for the application that is registered for it (ie. quicklinks on pinned apps for example).

If you want to achieve the file dialog like your picture the best way to do this is to use the new Windows Dialogs in newer versions of Windows that automatically provide this functionality including filtering for the file types you are referencing in the dialog. I presume that the best usecase for this is to use this dialog rather than building something custom.

I wrote a blog post about dealing with application specific MRU lists a while ago that might be useful as it gives some insight how files end up on MRU lists:

Adding Files to the Windows MRU/Recent Document List


Downloads come from here (default location):
C:\Users\<username>\Downloads
Downloads can of course be directed to other folders and you won't find those other place saved files stored anywhere.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform