Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading directories recursively
Message
 
 
À
19/07/2002 08:10:03
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00680366
Message ID:
00680383
Vues:
26
Take a look at WIN API #12730 SHFileOperation. It allows recursive copying files and directories and show a progress.
See Read Directory & Subdirectory Info. Thread #675780 for diferent ways to get a dirrectory tree.

>I need to copy a directory and all its contents (files + any number of levels of subdirectories).
>
>This seems to be very difficult in VFP. I can use run xcopy, but this opens a Command Prompt window, and looks clunky.
>
>Is there a simple and elegant way to do this? If I could easily read do something like DOS:
>
>dir /s
>
>into an array, it would then be easy to step through the array, and use copy file. I can't quite see how to do this though...
>
>Any suggestions gratefully received...
>
>Thanks
>
>John
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform