Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Folders
Message
 
To
04/04/2017 09:36:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01649758
Message ID:
01649763
Views:
79
>Is there a command to copy an entire folder to another location?
>I can do a MKDIR and then copy the source folder *.* to the new place but was wondering if there is a better way?
>
>Thank you,
>Rich Murillo

You can use WSH
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