Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to copy a folder and subdirectories
Message
De
11/04/2001 05:59:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00494097
Message ID:
00494340
Vues:
17
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform