>Which code must I put into the click event of a button
>to copy of the files of a folder to another folder or disk ?
>
>Moises
Also, if you have subfolders and you want to copy all in a single step, and if you are allowed to run WSH, you can do:
lcSourceFolder = 'C:\MySourceFolder'
lcTargetFolder = 'C:\MyTargetFolder'
llOverride = .T.
loFSO = Createobject('Scripting.FileSystemObject')
loFSO.CopyFolder(lcSourceFolder, lcTargetFolder, llOverride)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges