Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My Recent Documents
Message
 
 
À
23/12/2003 16:21:52
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00861753
Message ID:
00861902
Vues:
14
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform