Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading directories recursively
Message
From
19/07/2002 08:10:03
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Reading directories recursively
Miscellaneous
Thread ID:
00680366
Message ID:
00680366
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform