Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My Documents Folder
Message
De
29/09/2005 12:19:08
 
 
À
28/09/2005 19:12:22
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01054279
Message ID:
01054540
Vues:
26
>I have been asked by my client to save data files to the "My Documents" directory. I am referring to the "My Documents" folder at the head end of the drive above drive C:\.
>
>I have found that the getdir() function puts up a tree for normal directories starting with C:, D: etc. but nothing for the head end. I also find that if simply type in the directory name as MY DOMUMENTS and attempt to save there, it does not work.
>
>Is there some way of naming the "My Documents" folder so that it is accessible by VFP?
>
>Thanks.
>
>Mike Smith
this is what I do:

oApp.ADDPROPERTY("oFSO")
oApp.oFSO = CREATEOBJECT('Scripting.FileSystemObject')

oApp.ADDPROPERTY("oWSCRIPT")
oApp.oWSCRIPT = CREATEOBJECT('wscript.shell')

oApp.ADDPROPERTY("cMyDocuments")
oApp.cMyDocuments=oApp.oWSCRIPT.SpecialFolders.ITEM('MyDocuments')
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform