Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying a folder with files
Message
 
 
To
08/08/2007 11:18:11
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01246787
Message ID:
01246789
Views:
24
>I need to copy a folder and ALL its contents which may include individual files as well as additional folders to a back up drive. I can copy files with the COPY FILE command. But this will not copy folders.
>Any suggestions?"
>
>Thanks,
>
>Vicki

Vicki,

Try this:
local loFSO
loFSO = CREATEOBJECT("Scripting.FileSystemObject")
loFSO.CopyFolder("c:\ctemp", "c:\ctemp2")
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform