Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy way to copy a folder and subdirectories
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00494097
Message ID:
00494363
Views:
15
>>>>Want to copy a folder and all its files and subdirectories. I always want the easy way.
>>>>
>>>>Brenda
>>
>>>Use the FileSystemObject. e.g.
>>>
>>>oFso = CreateObject("Scripting.FileSystemObject")
>>>oFso.CopyFolder("c:\CopyThisFolder", "c:\ToThisFolder")
>>>See the help under VB for some pretty good documentation on it.
>>
>>Does anything have to be installed on the client's machine for this to run?
>>
>>Brenda
>
>The annoying feature of this method is that there is no progress information, in a different thread today Ed Rauh mentioned SHFileOperation()in the API which allows showing Windows style progress information - it may be worth looking at that if the directories concerned may be large.

Len,

Or the Shell.Application object can be used to interface with SHFileOperation(). The main problem with this method, however, is that not all machines may have it installed and, if not, it can be a PITA to install.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform