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--