Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Folders
Message
From
04/04/2017 14:36:34
 
 
To
04/04/2017 13:30:00
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
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:
01649775
Views:
57
>>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
>
>In application Hugos scripting host solution is probably better. In dev you can always fire a quick xcopy /E, which is probably better in that use case than the easy to remember /S. Option /H probably relevant as well, /G you should always ponder and not call autamaticaly via 1 line batch file..

For lurkers, it's worth pointing out that any time one is contemplating using XCOPY, one might want to use ROBOCOPY instead. Besides the well-documented differences that can be found by Googling [robocopy vs xcopy], ROBOCOPY supports deep folder structures. XCOPY fails if it's fed a total path length longer than 256 characters, ROBOCOPY does not.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform