Re: Which is faster - COPY FILE or XXCopy?



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?
    ... Total data in bytes = 9,810,070,488 ... Elapsed time in sec. = 2,048 ... When I first wrote the application that stores images in CHECKS, ... This keep the number of files in any folder small and the performance is ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Which is faster - COPY FILE or XXCopy?
    ... When using the copy in VFP, how do you copy all the subfolders??? ... XXCOPY or include it in your applications. ... This copies the checks folder from drive K to a folder on drive G whose ... you have the total data in bytes and the elapsed time in ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Which is faster - COPY FILE or XXCopy?
    ... This copies the checks folder from drive K to a folder on drive G whose ... Switch Parameters ... Total data in bytes = 9,027,685,968 ... you have the total data in bytes and the elapsed time in ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Which is faster - COPY FILE or XXCopy?
    ... This copies the checks folder from drive K to a folder on drive G whose name ... Switch Parameters ... Total data in bytes = 9,027,685,968 ... you have the total data in bytes and the elapsed time in ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Which is faster - COPY FILE or XXCopy?
    ... XXCOPY for personal use as if you use it commercial you need to purchase ... but I would need to come up with a way to name each folder so the date ... Total data in bytes = 9,027,685,968 ... you have the total data in bytes and the elapsed time in ...
    (microsoft.public.fox.programmer.exchange)

Loading