Hello George
The directory functions in Windev are very easy to use and full featured, as is the external file handling so what you are asking is quite easy to code
We have a document attachment process in our software and as a document is attached to a main record we hold its name & directory in a file so to archive the files we go through the file and copy the documents to another drive
If fFileExist(filename) //check the source file
fCopyFile(FileName, NewFilename,Frconfirm) //copy and confirm that it was copied
This code will search recursively for all the files in a folder and sub folders
LFileList = fListFile(LSrchDir,frRecursive)
// For each file found
FOR EACH STRING LFileName OF LFileList SEPARATED BY CR
LSrchFileName = ExtractString(LFileName,1,"\",FromEnd)
You can then decide what to do with the file name returned
If you have the demo copy of Windev, the commands that work with external files are all prefixed with lowercase "f"
Regards
Al