Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Documents Folder
Message
From
29/09/2005 12:19:08
 
 
To
28/09/2005 19:12:22
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01054279
Message ID:
01054540
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform