>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