Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to copy a folder and subdirectories
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00494097
Message ID:
00494363
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,

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform