Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy way to copy a folder and subdirectories
Message
From
11/04/2001 05:59:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00494097
Message ID:
00494340
Views:
16
>>>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 Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform