> Trying to Copy a Directory, all subdirectories and all files with VFP.
> I haven't found an API for this.
>
> Any suggestions will be greatly appreciated

I don't think there's a VFP built-in function or a win32 function for
this, but you could use VBScript's File System Object to easily do
this:

loFso = CREATEOBJECT("Scripting.FileSystemObject")
loFso.CopyFolder("c:\folder1", "c:\folder2", .T.)

Or write a pure VFP recursive function using ADIR()...


-- 
Derek


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to