Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy files of folder
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901155
Message ID:
00901228
Views:
18
This message has been marked as the solution to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform