[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 5266 Date : 2003-08-10 Author : dayvah49 Subject : Re: Copy failed using /RCY/R to overwrite Read-Only file in destination Size(KB) : 2
garrydeane wrote: > I'm not sure I've got the full picture but it seems that the problem > relates to why the file can't be deleted. I tried using /rcy/r on a > read only file and it was deleted OK so I don't think it's a problem > with your switches or Xxcopy. It might be a file in use issue. > > Try adding /oe3 to your switches which will give more detail on why > the copy failed. Garry, My initial thoughts were the same as yours that it must be a file in use problem. But the four read-only files that caused the original problem are related to a firmware update for my cd burner drive and are not in use. They are not even installed at this time. The two files I used for my test, one in source and one in destination, are newly made simple .txt files that have the same name and the same size. Both have just the read-only bit checked and neither file is in use. I ran the test to exclude files in use as the obvious cause for "copied failed" with /oe3 added as you suggested. See the results below. I'm stumped, any other ideas? ====================================================================== ========= XXCOPY ver 2.84.9 2003-08-10 00:44:57 Windows Ver 4.10.2222 Command Line = C:\WINDOWS\COMMAND\XXCOPY.EXE "h:\xxtest\test_1 \" "h:\xxtest\test_2\" /ks/rcy/ed/pd0/s/h/r/y/oe3/oa:i:\xxerr.log ---------------------------------------------------------------------- --------- Switch Parameters /A0 /B0 /C /CA /CB0 /CCY /CK /CR3 /D0 /DL0 /E0 /EC0 /ED /ER0 /F0 /FM0 /FF0 /FL /FT0 /FW /H /I0 /IN* /KS /L0 /N0 /NP0 /NX /NI0 /NW /NC0 /oAi:\xxe rr.log /oD1 /oE3 /oF1 /oI0 /oP0 /oS0 /oX0 /P0 /PB0 /PC0 /PD0 /PN /Po0 /PZ0 / Q0 /QF0 /QB0 /QS0 /R /RCY /S /SP0 /SG0 /SX0 SZ:- /T0 /TR00 /TS0 /TD0 /TTA0 /TCA0 /TCC0 /TCW /TM0 /U0 /V0 /W0 /WD /WV /Y /Z0 /ZE0 /ZS0 /ZX0 ---------------------------------------------------------------------- --------- Source base directory = "H:\xxtest\test_1\" Destination directory = "H:\xxtest\test_2\" File name template = "*" H:\xxtest\test_1\test.txt Copy failed ---------------------------------------------------------------------- --------- Summary of Errors ## Error 5 ## Access is denied H:\xxtest\test_1\test.txt ---------------------------------------------------------------------- --------- Directories processed = 1 Total data in bytes = 0 Elapsed time in sec. = 0.003 Action speed (MB/min) = 0 Files examined = 1 Files copied = 0 Files copy failed = 1 Log File Appended = i:\xxerr.log Exit code = 101 (Exit code is the number of failures plus 100) dayvah49
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.