Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Recent Documents
Message
 
 
To
23/12/2003 16:21:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00861753
Message ID:
00861902
Views:
15
Hi Valentin,

You shouldn't guess location of the Recent files folder but get it from Windows. You can do that using WSH.
oShell = CREATEOBJECT("WScript.Shell")
oFso = CreateObject("Scripting.FileSystemObject")
? oShell.SpecialFolders("Recent")
oFolder =  oFso.GetFolder( oShell.SpecialFolders("Recent") )
FOR EACH oFile in oFolder.Files
	? oFile.Name
ENDFOR
Notice the name of the Recent files folder and that it doesn't exists if you look for it with WIndows Explorer. ADIR() wouldn't find it either.

>Hi Everyone,
>
>I tried displaying My Recent Documents inside my VFP application. These files are the link files which are found in the user profile \My Recent Documents folder.
>
>However, sometimes the files inside that folder does not match up on what is being displayed by Windows.
>
>Anybody know how to fix this?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform