Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading directories recursively
Message
De
19/07/2002 08:10:03
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Reading directories recursively
Divers
Thread ID:
00680366
Message ID:
00680366
Vues:
41
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
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform