Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Folders
Message
From
04/04/2017 19:11:57
 
 
To
04/04/2017 14:36:34
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:
01649786
Views:
66
>>>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.

In the highly improbable case (see below) where someone might be using an older version of Windows (e.g. Windows XP, Windows 2003), ROBOCOPY might not be available (you can get it through the Resource Kit however).

http://www.techrepublic.com/article/report-52-of-businesses-still-running-windows-xp-despite-support-ending-in-2014/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform