Re: Which is faster - COPY FILE or XXCopy?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



There might be away to do it with ROBOCOPY. Have you looked at the manual?
35 or so pages for a copy command!


--
Fred
Microsoft Visual FoxPro MVP


"TonySper" <tsperduti@xxxxxxxxxxxxxxxxxxx> wrote in message
news:O08OdKVAIHA.4836@xxxxxxxxxxxxxxxxxxxxxxx
Fred,
Yes I was just noting a problem. Microsoft has included ROBOCOPY in their
VISTA now as well as XCOPY. The problem with both of them is that when it
comes across a file that it can't access it just errors out and stops.
(PAIN PAIN PAIN). I have found that XXCOPY has the option to just skip the
file and continue coping. Sometime try and copy your C:\DOCUMENTS AND
SETTING folder and ROBOCOPY and XCOPY will error out but XXCOPY will just
skip the file and continue. You would think there would be a way of doing
this with XCOPY or ROBOCOPY. If there is I wish someone would advise me
how.
Tony

"Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in message
news:OIPjxWKAIHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
You have to go through the directory structure yourself in VFP, there's
no "built-in" way of doing it. You should be able to search for "recurse
directory" in forums like the UT and find something.

--
Fred
Microsoft Visual FoxPro MVP


"TonySper" <tsperduti@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23iVGUiJAIHA.4656@xxxxxxxxxxxxxxxxxxxxxxx
When using the copy in VFP, how do you copy all the subfolders??? Is
there a command in copy file to copy all the subfolders??? I have used
XXCOPY for personal use as if you use it commercial you need to purchase
a license for $40.00 for 1 or 2 users. After that it gets expensive. You
cannot distribute XXCOPY or include it in your applications.
Tony

"Steve Meyerson" <stevemeyerson@xxxxxxx> wrote in message
news:aoglf392tdr9pgvgdgmpf3d9jm2emtrl5k@xxxxxxxxxx
Thanks a lot, Jeff. Your example will help me tremendously with the
doc.

Your example took about 5 hrs. At 29.5 MB/min, my "measly" 100MB (max)
should take 3 or 4 minutes, or less, which is great.

Steve



On Wed, 26 Sep 2007 12:21:25 -0400, "Jeff Grippe" <jeff@xxxxxxxxx>
wrote:

I may be able to do the backup totally outside of VFP if I use
XXCopy,
but I would need to come up with a way to name each folder so the
date
and type of backup (full or incremental) is included in the date for
selective restore purposes - i.e. I need to RTFM :-(


XXCOPY does this. It is the reason that I chose it as a tool

Here is a sample from my batch file

xxcopy K:\CHECKS\ G:\/$YYYY-MM-DD$\CHECKS\ /S /I /C /oA/$YYYYMMDD$.TXT

This copies the checks folder from drive K to a folder on drive G whose
name
(today) would be

G:\2007-09-26\CHECKS

The final switch /oA/$YYYYMMDD$.TXT

Appends to a file called (today) 20070926.TXT which contains the
results
from the operation. They look like this:

===============================================================================
XXCOPY ver 2.92.6 2007-09-18 18:18:20 Windows Ver 5.1.2600
Command Line = xxcopy K:\CHECKS\ G:\/$YYYY-MM-DD$\CHECKS\ /S /I /C
/oA/$YYYYMMDD$.TXT
-------------------------------------------------------------------------------
Switch Parameters
/AXH /AXS /B0 /C /CA /CB0 /CCY /CK /CR3 /D0 /DL0 /E0 /EC0 /ED0 /ER0
/F0
/FM0
/FF0 /FL /FT0 /FW /H0 /I /IN* /K0 /L0 /N0 /NP0 /NX0 /NI0 /NW /NC0
/oAe:\20070918.TXT /oD1 /oE0 /oF1 /oI0 /oP0 /oS0 /oX0 /P0 /PB0 /PBH
/PC0
/PD0
/PN /Po /PZ0 /Q0 /QF0 /QB0 /QS0 /R0 /S /SP0 /SG0 /SX0 SZ:- /T0 /TR00
/TS0
/TD0 /TTA0 /TCA0 /TCC0 /TCW /TM0 /U0 /V0 /W0 /WD /Z0 /ZE0 /ZS0 /ZX0
-------------------------------------------------------------------------------
Source base directory = "K:\CHECKS\"
Destination directory = "G:\2007-09-18\CHECKS\"
File name template = "*"
Directories processed = 4,448
Total data in bytes = 9,027,685,968
Elapsed time in sec. = 18,360
Action speed (MB/min) = 29.5
Files copied = 303,322
Directories created = 4,443
Log File Appended = e:\20070918.TXT
Exit code = 0 (No error, Successful operation)

As you can see, you have the total data in bytes and the elapsed time
in
seconds.

Jeff










.



Relevant Pages

  • Re: Which is faster - COPY FILE or XXCopy?
    ... Microsoft has included ROBOCOPY in their ... VISTA now as well as XCOPY. ... I have found that XXCOPY has the option to just skip the file ... folder and ROBOCOPY and XCOPY will error out but XXCOPY will just skip the ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Which is faster - COPY FILE or XXCopy?
    ... Sorry Tony, I only have RoboCopy in use at work, and the doc is there. ... Microsoft Visual FoxPro MVP ... C:\DOCUMENTS AND SETTING folder and ROBOCOPY and XCOPY will error out ... but XXCOPY will just skip the file and continue. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Multiple XCOPY iterations in CMD window - Memory Leak?
    ... I am having similar difficulities with both XXCOPY and ROBOCOPY. ... entries (they gave me a removal command because my Pro version thought it was ... I recognize that the CMD window is not really DOS, ...
    (microsoft.public.windowsxp.general)
  • Re: Robocopy help
    ... I'm trying to use robocopy on a Windows 2003 server to copy the last ... The C:\temp folder ... /XC:: eXclude Changed files. ...
    (microsoft.public.windows.server.general)
  • RE: FSMT - Server Shares Only?
    ... xcopy can also copy the folder NTFS ... permissions, robocopy is the enhanced version of xcopy. ...
    (microsoft.public.windows.server.migration)